-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.html
41 lines (32 loc) · 879 Bytes
/
list.html
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
29
30
31
32
33
34
35
36
37
38
39
{{ partial "header.html" . }}
<main class="content" role="main">
{{ if eq .Section "post" }}
{{ if .Content }}
<article class="article">
{{ if .Title }}
<h1 class="article-title">{{ .Title }}</h1>
{{ end }}
<div class="article-content">
{{ .Content }}
</div>
</article>
{{ end }}
<div class="archive">
{{ $pages := .Pages }}
{{ $pages = .Site.RegularPages }}
{{ range (where $pages "Section" "==" "post").GroupByDate "2006" }}
<h2 class="archive-title">{{ .Key }}</h2>
{{ range .Pages }}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
<span class="archive-item-date">
{{ .Date.Format "2006-01-02" }}
</span>
</article>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ .Content }}
</main>
{{ partial "footer.html" . }}