about summary refs log tree commit diff
path: root/layouts/index.html
blob: e1bfe7f6efa3747cc33c083e5a74b81541b86eb7 (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 }}">{{ i18n .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 }}