blog/index.njk

25 lines
701 B
Plaintext
Raw Normal View History

2022-05-10 21:41:47 -04:00
---
2022-05-19 22:08:42 -04:00
pagination:
data: collections.posts
size: 6
alias: posts
2022-05-10 21:41:47 -04:00
---
2022-05-19 22:08:42 -04:00
{% extends 'layouts/default.njk' %}
{% block content %}
2024-05-23 15:37:43 -04:00
{% set postslist = search.pages("type=post") %}
2022-11-11 23:26:39 -05:00
<section class="h-feed">
{% for post in postslist %}
<article class="h-entry">
<h2 class="p-name">
2024-05-23 15:37:43 -04:00
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
<div class="e-content">
{{ post.excerpt | safe }}
</div>
2024-05-23 15:37:43 -04:00
<time class="dt-published" datetime={{ post.date | date }} pubdate>
<a class="u-url text-gray-500 text-sm" href={{ post.url }}>{{ post.date | date }}</a>
2022-11-11 23:26:39 -05:00
</time>
</article>
{% endfor %}
2024-05-23 15:37:43 -04:00
</section>
2022-05-19 22:08:42 -04:00
{% endblock %}