summaryrefslogtreecommitdiff
path: root/layouts/uncategorized.html
blob: a269a18ac1429aa689965bd9ca3824ea0c27ff0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ define "main" }}
    <article>
        {{ partial "header" . }}
        {{ partial "home/home-nav" . }}
        <div class="post-content markdown-body">
            <p>{{ .Content }}</p>
        </div>
        <!-- Uncategorized -->
        {{ $posts := .Site.GetPage "section" "posts" }}
        {{ $essays := .Site.GetPage "section" "essays" }}
        {{ $combined := $posts.Pages | append $essays.Pages }}
        {{ $uncategorized := where $combined "Params.categories" "eq" 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 }}