summaryrefslogtreecommitdiff
path: root/layouts/cards/section.html
blob: 17025698eebd792559ca92840d50572cc6bb6814 (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" }}
<article>
    {{ partial "header.html" . }}

    {{- $cards := .Site.GetPage "section" "cards" }}
    {{- $pages := $cards.Pages }}
    {{- $featured := first 6 $pages }}
    {{- $rest := after 6 $pages }}
    <div class="grid! md:grid-cols-2 gap-4 outbox small">
        {{- range $featured }}
            {{ partial "items/card" (dict "context" . "summary" true) }}
        {{- end }}
    </div>

    <ul class="flex gap-4 flex-wrap justify-around list-none text-5">
        {{- range $rest }}
            <li>
                <a href="{{ .RelPermalink }}">{{ .Title }}</a>
            </li>
        {{- end }}
    </ul>

    {{ partial "footer.html" . }}
</article>
{{ end }}