feat: reorg pages
This commit is contained in:
parent
0e3ef370c7
commit
593f20560d
16 changed files with 8 additions and 24 deletions
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
layout: "layouts/base"
|
||||
permalink: /posts/index.html
|
||||
title: Posts
|
||||
---
|
||||
|
||||
{% from "macros/posts.njk" import yearList %}
|
||||
<h1>All posts</h1>
|
||||
<p>
|
||||
Browse all of my posts, or narrow things down <a href="/tags">via tags</a>.
|
||||
</p>
|
||||
{% set itemsByYear = collections.post | reverse | organizeByDate %}
|
||||
{% set years = itemsByYear | keys | sort("desc") %}
|
||||
<section class="[ flow ]">
|
||||
{% for year in years %}
|
||||
{% set itemsInYear = itemsByYear[year] %}
|
||||
{{ yearList(itemsInYear, year) }}
|
||||
{% endfor %}
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue