blog/index.njk
2022-11-14 21:05:03 -05:00

25 lines
698 B
Plaintext

---
pagination:
data: collections.posts
size: 6
alias: posts
---
{% extends 'layouts/default.njk' %}
{% block content %}
{% set postslist = collections.posts %}
<section class="h-feed">
{% for post in postslist %}
<article class="h-entry">
<h2 class="p-name">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
<div class="e-content">
{{ post.excerpt | safe }}
</div>
<time class="dt-published" datetime={{ post.published_at }} pubdate>
<a class="u-url text-gray-500 text-sm" href={{ post.url }}>{{ post.date | dateString }}</a>
</time>
</article>
{% endfor %}
</section>
{% endblock %}