post list trimming
This commit is contained in:
parent
93570c2334
commit
a9d7865725
1 changed files with 14 additions and 8 deletions
|
|
@ -1,15 +1,21 @@
|
||||||
<div id="posts--list">
|
<div id="posts--list">
|
||||||
{%- for item in collections.post -%}
|
{%- for post in collections.post | reverse -%}
|
||||||
<article>
|
<article>
|
||||||
|
<a href="{{ post.url }}">
|
||||||
<h2>
|
<h2>
|
||||||
{{ item.data.title }}
|
{{ post.data.title }}
|
||||||
</h2>
|
</h2>
|
||||||
|
</a>
|
||||||
|
<time>
|
||||||
|
{{ post.data.date }}
|
||||||
|
</time>
|
||||||
<p>
|
<p>
|
||||||
{{ item.data.date }}
|
{{ post.data.page.excerpt }}
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{{ item.data.page.excerpt }}
|
|
||||||
</p>
|
</p>
|
||||||
|
{% for tag in post.data.tags %}
|
||||||
|
{% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
|
||||||
|
<a href="{{ tagUrl | url }}">{{ tag }}</a>
|
||||||
|
{% endfor %}
|
||||||
</article>
|
</article>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue