summaryrefslogtreecommitdiff
path: root/layouts/archive.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-08 14:41:19 +0800
committereltrac <hi@eltr.ac>2026-03-08 14:41:19 +0800
commitfe0bafba4a126fef9c169bfefa09201a6ea400ca (patch)
tree66b77deef5773a56f5f962ed3b65d8ac1330203c /layouts/archive.html
parent5ccd892f23ba9cfa7145fec7137a49eb2077a447 (diff)
parentc09ffa2e5b0db615f4a4614da7d4811616afdf4f (diff)
merge branch restructure
Diffstat (limited to 'layouts/archive.html')
-rw-r--r--layouts/archive.html16
1 files changed, 10 insertions, 6 deletions
diff --git a/layouts/archive.html b/layouts/archive.html
index 3af7c9ce..87bafab2 100644
--- a/layouts/archive.html
+++ b/layouts/archive.html
@@ -1,20 +1,24 @@
{{ define "main" }}
<article>
{{ partial "header" . }}
- {{ partial "home/home-nav" . }}
+ {{ partial "taxonomy/pagefind" . }}
<div class="post-content text-size-lg">
- <ol class="mx-0 my-4 p-0 leading-loose flex flex-col-reverse">
- {{ range (.Site.RegularPages | collections.Reverse) }}
- {{ if eq .Language .Site.Language }}
- <li class="list-decimal text-secondary">
+ {{ range .Site.RegularPages.GroupByDate "2006" }}
+ {{ partial "components/section-title" (dict
+ "Left" .Key
+ "Right" (T "archivePage.pageCount" (len .Pages))
+ )}}
+ <ol class="mx-0 my-4 p-0 leading-loose flex flex-col">
+ {{ range .Pages }}
+ <li class="list-decimal text-secondary lazy-render">
<div class="flex justify-between">
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
<a href="/{{ .Section }}" class="font-mono text-secondary">{{ .Section }}</a>
</div>
</li>
{{ end }}
- {{ end }}
</ol>
+ {{ end }}
</div>
</article>
{{ partial "footer.html" . }}