blob: f19ccaca4f705bb747f098156688669dc9b7787d (
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
28
|
{{ define "main" }}
{{ partial "header.html" . }}
<section class="section">
<div class="container content">
<div class="columns">
<div class="column is-8 is-offset-2">
{{ $count := len (where (where .Site.Pages "Type" "post") "Kind" "page") }}
<h2 class="has-text-centered">{{ i18n "archives" (dict "Count" $count) }}</h2>
<div class="post-archive">
{{ range (where (where .Site.Pages "Type" "post") "Kind" "page").GroupByDate "2006" }}
<div class="box container">
<h3>{{ .Key }}</h3>
<ul class="listing">
{{ range .Pages }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }} </span>
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</div>
</div>
</div>
</section>
{{ end }}
|