Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « layouts - github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e113fd99e30b9228828e55b1e40997a53623786e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ define "main" }}
    <div class="container">
        <div class="main">
            {{ range (where .Site.RegularPages "Type" "in" .Site.Params.mainSections).GroupByDate "2006" }}
                <div class="posts">
                    <div class="year">{{ .Key }}</div>
                    {{ range .Pages }}
                        <div class="post">
                            <a class="post-title" href="{{ .Permalink }}">
                                {{ .Title }}
                            </a>
                            <span class="post-date">
                                {{ .Date.Format "Jan 02" }}
                            </span>
                        </div>
                    {{ end }}
                </div>
            {{ end }}
        </div>
    </div>
{{ end }}