summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/index.html
blob: ab68f27e8ad19fa833d483e8b95f4533f544a71f (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 site.Params.homepage_categories }}
            <h2>{{ .title }}</h2>
            {{- range first .count (where site.RegularPages "Section" "==" .key) }}
                {{ partial "card.html" . }}
            {{- 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 }}