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

View file

@ -6,6 +6,7 @@ layout: base.njk
<ul>
<li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a></li>
<li><a href="/lists">Lists</a></li>
<li><a href="/feed.xml">RSS</a></li>
</ul>
</nav>

17
src/feed/lists.md Normal file
View file

@ -0,0 +1,17 @@
---
title: "New Feature: Lists! 🎆"
relativeUrl: /lists
tags: feed
---
The site now has a new section: lists! I could have just put lists into the blog (and I kinda did in the past with the old web directory), but they're more evergreen with a blog post. They're pieces of content that are relevant for a long time and will be updated. It made sense to separate them from the blog.
The feature launches with three lists:
- [better alternatives to popular things](/lists/better-alternatives-to-popular-things) (warning: very opinionated; feel free to make your own list if you disagree)
- [my YouTube subscriptions](/lists/youtube-channels) (warning: massive)
- [my favorite internet videos](/lists/favorite-internet-videos)
I have an idea for one more list that I'd like to publish soon-ish. Keep an eye out for that.
Hope you enjoy the lists!

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>