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

        <h2>Recently updated projects</h2>
        {{ range first 2 (where site.RegularPages "Section" "==" "projects") }}
            {{ partial "card.html" . }}
        {{- end }}

        <h2>Blog</h2>
        {{ range (where site.RegularPages "Section" "==" "blog") }}
            {{ partial "card.html" . }}
        {{- end }}
    </main>
{{- end }}