Add lists section
This commit is contained in:
parent
dc4ff9b788
commit
fdfb6a07ae
3 changed files with 38 additions and 0 deletions
20
src/lists/index.njk
Normal file
20
src/lists/index.njk
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue