summary refs log tree commit diff
path: root/src/blog.njk
blob: a8ec510896d7f4884603dfe3241f6c1d7249f5c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout = "base.njk"
[pagination]
data = "collections.post"
alias = "posts"
size = 20
reverse = true
---
{% for post in posts %}
<article>
	<h2><a href="{{ post.url | url }}">{{ post.data.title }}</a></h2>
	<time datetime="{{ post.date | rfc3339_datetime }}">{{ post.date | local_date }}</time>
	{%- if post.data.page.excerpt -%}
		<p>{{ post.data.page.excerpt | safe }}
	{%- endif -%}
</article>
{% endfor %}