summaryrefslogtreecommitdiff
path: root/layouts/archive.html
blob: 82f0f49fb4f1bf3d46b04448169a40d1d9d2bbfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ define "main" }}
<article>
    {{ partial "taxonomy/pagefind" . }}
    <div class="post-content text-size-lg">
        {{ 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 }}
        </ol>
        {{ end }}
    </div>
</article>
{{ end }}