summaryrefslogtreecommitdiff
path: root/themes/itheme/layouts/posts/list.html
blob: 50048eb332a12c78aeb893ca5f39417704c4b599 (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
26
27
{{ define "main" }}
<div class="results">
    <div class="results__content">

        {{ range (.Paginate (.Pages.GroupByDate "2006-01")).PageGroups }}
        <div class="result" role="group">

        <!-- add day manually to parse as date-->
        {{ $month := printf "%s%s" .Key "-01"}}
            <h2 class="result__title">{{ $month | time.Format "January 2006" }}</h2>
            {{ range .Pages }}

            {{ partial "archiveItem.html" (dict "context" .) }}

            {{ end }}

        </div>
        {{ end }}
    </div>
</div>

{{ partial "pagination.html" . }}


{{ end }}