blog/index.njk
James Walker df332d5b2b
All checks were successful
continuous-integration/drone/push Build is passing
💥 giving lume / deno a try
2024-05-23 15:37:43 -04:00

25 lines
701 B
Plaintext

---
pagination:
data: collections.posts
size: 6
alias: posts
---
{% extends 'layouts/default.njk' %}
{% block content %}
{% set postslist = search.pages("type=post") %}
<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.date | date }} pubdate>
<a class="u-url text-gray-500 text-sm" href={{ post.url }}>{{ post.date | date }}</a>
</time>
</article>
{% endfor %}
</section>
{% endblock %}