summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/index.html
blob: 808ddc8be5e137838561c59b3f60658ccf8eea51 (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
{{- define "main" }}
    <header>
        <h1>{{ .Title }}</h1>
    </header>
    <main class="cards">
        {{- if .Content }}
        <div class="intro">
            {{ .Content }}
        </div>
        {{- end }}

        {{- range $config := site.Params.homepage_categories }}
            <h2>{{ .title }}</h2>
            {{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }}
                {{ partial "card.html" $entry }}
            {{- end }}

            <div class="pagination-links">
                {{- with site.GetPage (printf "/%s" .key) }}
                <a href="{{ .RelPermalink }}">See more<span class="arrow-right"></span></a>
                {{- end }}
            </div>
        {{- end }}
    </main>
{{- end }}