summaryrefslogtreecommitdiff
path: root/layouts/uncategorized.html
blob: 0eed855cfecfb28e8784d8c619bc9f657b2279bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "main" }}
    <article class="posts termlist-page">
        {{ partial "header" . }}
        {{ partial "home/home-nav" . }}
        <h1 class="term-title">{{ .Title }}</h1>
        <div class="post-content markdown-body">
            <p>{{ .Content }}</p>
        </div>
        <!-- Uncategorized -->
        {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }}
        {{ if $uncategorized }}
        <ol class="ps-0 flex flex-col gap-2 leading-relaxed">
            {{ range $uncategorized }}
            {{ partial "items/post-small" . }}
            {{ end }}
        </ol>
        {{ end }}
    </article>
{{ partial "footer.html" . }}
{{ end }}