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">
|
||||
{%- for item in collections.post -%}
|
||||
{%- for post in collections.post | reverse -%}
|
||||
<article>
|
||||
<h2>
|
||||
{{ item.data.title }}
|
||||
</h2>
|
||||
<a href="{{ post.url }}">
|
||||
<h2>
|
||||
{{ post.data.title }}
|
||||
</h2>
|
||||
</a>
|
||||
<time>
|
||||
{{ post.data.date }}
|
||||
</time>
|
||||
<p>
|
||||
{{ item.data.date }}
|
||||
</p>
|
||||
<p>
|
||||
{{ item.data.page.excerpt }}
|
||||
{{ post.data.page.excerpt }}
|
||||
</p>
|
||||
{% for tag in post.data.tags %}
|
||||
{% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
|
||||
<a href="{{ tagUrl | url }}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue