Reduce newline noise
This commit is contained in:
parent
1fa590da70
commit
4804120d86
|
@ -6,7 +6,6 @@
|
||||||
<body>
|
<body>
|
||||||
{% include "_menu.liquid" %}
|
{% include "_menu.liquid" %}
|
||||||
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
</main>
|
</main>
|
||||||
|
|
10
index.liquid
10
index.liquid
|
@ -3,16 +3,16 @@ layout: default.liquid
|
||||||
data:
|
data:
|
||||||
route: blog
|
route: blog
|
||||||
---
|
---
|
||||||
{% assign idx = 0 %}
|
{%- assign idx = 0 -%}
|
||||||
{% for post in collections.posts.pages %}
|
{%- for post in collections.posts.pages -%}
|
||||||
{% if idx < 5 %}
|
{%- if idx < 5 -%}
|
||||||
<article class="blog-list">
|
<article class="blog-list">
|
||||||
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
|
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
|
||||||
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }}</time><br />
|
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }}</time><br />
|
||||||
<p>{{ post.content | strip_html | truncatewords: 25, '...' }}</p>
|
<p>{{ post.content | strip_html | truncatewords: 25, '...' }}</p>
|
||||||
</article>
|
</article>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% assign idx = idx | plus: 1 %}
|
{% assign idx = idx | plus: 1 %}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
|
|
||||||
Looking for more posts? Check out <a href="/posts/">all posts</a>!
|
Looking for more posts? Check out <a href="/posts/">all posts</a>!
|
||||||
|
|
Loading…
Reference in a new issue