Add lists section

This commit is contained in:
Devon Campbell 2023-07-16 08:49:29 -05:00
commit fdfb6a07ae
3 changed files with 38 additions and 0 deletions

20
src/lists/index.njk Normal file
View file

@ -0,0 +1,20 @@
---
title: Devon's Lists
layout: article.njk
pagination:
data: collections.list
size: 5
alias: posts
reverse: true
---
<p>Like posts, lists are sorted by most recently modified.</p>
<ul class="post-list">
{%- for list in collections.list -%}
<li>
<h2><a href="{{ list.url }}">{{ list.data.title }}</a></h2>
<small>Last updated {{ list.date | formatDatetimeForHumans }}</small>
</li>
{%- endfor -%}
</ul>