blob: edfc24e0ef55b33c118c13f216e7f0836cb94702 (
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
29
30
31
32
33
|
{{ partial "header.html" . }}
<main>
<div class="catalogue">
{{ range (.Paginate (where .Pages "Type" "post")).Pages }}
<a href="{{ .Permalink }}" class="catalogue-item">
<div>
<time datetime="{{ .PublishDate }}" class="catalogue-time">{{ .PublishDate.Format "January 2, 2006" }}</time>
<h1 class="catalogue-title">{{ .Title }}</h1>
<div class="catalogue-line"></div>
<p>
{{ .Summary }}
</p>
</div>
</a>
{{ end }}
</div>
<div class="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">←</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">→</a>
{{ end }}
<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>
{{ partial "footer.html" . }}
|