From 4804120d864da1a0a455ce64e3d2265e7812a28e Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 11 Feb 2018 12:22:39 +0100 Subject: [PATCH] Reduce newline noise --- _layouts/default.liquid | 1 - index.liquid | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/_layouts/default.liquid b/_layouts/default.liquid index 346d9e8..a6e489d 100644 --- a/_layouts/default.liquid +++ b/_layouts/default.liquid @@ -6,7 +6,6 @@ {% include "_menu.liquid" %} -
{{ page.content }}
diff --git a/index.liquid b/index.liquid index 0f879d5..5d7d2ff 100644 --- a/index.liquid +++ b/index.liquid @@ -3,16 +3,16 @@ layout: default.liquid data: route: blog --- -{% assign idx = 0 %} -{% for post in collections.posts.pages %} -{% if idx < 5 %} +{%- assign idx = 0 -%} +{%- for post in collections.posts.pages -%} +{%- if idx < 5 -%}

{{ post.title }}


{{ post.content | strip_html | truncatewords: 25, '...' }}

-{% endif %} +{%- endif -%} {% assign idx = idx | plus: 1 %} -{% endfor %} +{%- endfor -%} Looking for more posts? Check out all posts!