about summary refs log tree commit diff
path: root/layouts/index.html
blob: 414d5e628e9656538e259e64c503944c3ca62ac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}
    <div class="homepage-content">
        {{ .Content }}
        <ul>
            {{ range .Site.Sections }}
            <li> <a href="{{ .Permalink }}">{{ .Title }}</a> </li>
            {{ end }}
        </ul>
    </div>

    <div class="articles h-feed">
        {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
        {{ range (.Paginate $pages).Pages }}
            {{ partial "postSummary.html" . }}
        {{ end }}
        {{ partial "pagination.html" . }}
    </div>

{{ end }}