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!