summaryrefslogtreecommitdiff
path: root/layouts/archive.html
diff options
context:
space:
mode:
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" . }}