summaryrefslogtreecommitdiff
path: root/layouts/term/term.html
blob: a042d58368f821081bcc714c24386a7d6bc256f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{ define "main" }}
    <article class="posts termlist-page">
        {{ partial "components/post-page-header.html" . }}
        {{ partial "components/breadcrumbs.html" . }}

        <div class="term-list">
            <ul class="term-list-posts">
                {{ range where .Pages "Section" "ne" "cards" }}
                <li>
                    <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page">
                        {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span>
                        {{ end }}
                    </a>
                    <time>
                        {{ .Date.Format "2006-1-2" }}
                    </time>
                </li>
                {{ end }}
            </ul>
            <div class="term-list-cards cards-section outbox small">
                {{ range where .Pages "Section" "eq" "cards" }}
                <div class="card">
                    <h3>
                        <a href="{{ .RelPermalink }}" data-umami-event="Click Card Link from Category Page">
                            {{ .Title }}
                        </a>
                    </h3>
                    <p>{{ .Summary }}</p>
                </div>
                {{ end }}
            </div>
        </div>
    </article>
    {{ partial "footer.html" . }}
{{ end }}