feat: add archive view of posts

This commit is contained in:
Devin Haska 2024-02-07 20:02:59 -08:00
parent 5e72b839fe
commit 6265474981
8 changed files with 78 additions and 10 deletions

View file

@ -3,14 +3,9 @@ permalink: /posts/index.html
layout: "base"
---
{% set posts = collections.posts | organizeByDate %}
<h1>All posts</h1>
<p>
View all <a href="/tags">tags</a>
</p>
<ul>
{% for post in collections.posts %}
<li>
<a href={{ post.url }}>{{ post.data.title }}</a>
</li>
{% endfor %}
</ul>
{% include "partials/posts.html" %}