mestizo.monster/_includes/post-list.njk

20 lines
454 B
Text

---
layout: base.njk
---
<section>
<nav><a href="/">home</a> > <a href="{{ page.url }}">{{ title }}</a></nav>
</section>
<main>
{{ content | safe }}
<ul>
{%- for post in ( collections.post | sortByDate ) -%}
<li>
<a href="{{ post.url }}">{{ post.data.date }} - {{ post.data.title }}</a>
({{ post.content | readingTime }})<br />
<em>{{ post.data.description }}</em>
</li>
{%- endfor -%}
</ul>
</main>