Fix yearly changelog archives

This commit is contained in:
Leilukin 2025-05-05 20:35:20 +08:00
parent 2f96346d6d
commit 02f6b59b0b
5 changed files with 33 additions and 9 deletions

View File

@ -1,4 +1,4 @@
{{ for log of changelogList |> toReversed }}
{{ for log of changelogList }}
{{ headingAnchor 2, log.fileSlug }}
{{ log.date |> formatDate }}
{{ /headingAnchor }}

View File

@ -7,5 +7,11 @@ eleventyNavigation:
order: 2
---
{{ set changelogList = collections["changelog 2022"] }}
{{ include "partials/changelogs-list.vto" }}
{{ set changelogList = collections["changelog 2022"] |> toReversed }}
{{ for log of changelogList }}
{{ headingAnchor 2, log.fileSlug }}
{{ log.date |> formatDate }}
{{ /headingAnchor }}
{{ log.content }}
{{ /for }}

View File

@ -7,5 +7,11 @@ eleventyNavigation:
order: 3
---
{{ set changelogList = collections["changelog 2023"] }}
{{ include "partials/changelogs-list.vto" }}
{{ set changelogList = collections["changelog 2023"] |> toReversed }}
{{ for log of changelogList }}
{{ headingAnchor 2, log.fileSlug }}
{{ log.date |> formatDate }}
{{ /headingAnchor }}
{{ log.content }}
{{ /for }}

View File

@ -7,5 +7,11 @@ eleventyNavigation:
order: 4
---
{{ set changelogList = collections["changelog 2024"] }}
{{ include "partials/changelogs-list.vto" }}
{{ set changelogList = collections["changelog 2024"] |> toReversed }}
{{ for log of changelogList }}
{{ headingAnchor 2, log.fileSlug }}
{{ log.date |> formatDate }}
{{ /headingAnchor }}
{{ log.content }}
{{ /for }}

View File

@ -7,5 +7,11 @@ eleventyNavigation:
order: 5
---
{{ set changelogList = collections["changelog 2025"] }}
{{ include "partials/changelogs-list.vto" }}
{{ set changelogList = collections["changelog 2025"] |> toReversed }}
{{ for log of changelogList }}
{{ headingAnchor 2, log.fileSlug }}
{{ log.date |> formatDate }}
{{ /headingAnchor }}
{{ log.content }}
{{ /for }}