blob: 2475182ab60ece2ea3c69330f0d249eb7845c9a1 (
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
|
{{ partial "default_head.html" . }}
<!-- Space delimited list of page types -->
{{ $paginator := .Paginate (where .Data.Pages "Type" "in" "post") }}
<div class="posts">
{{ range .Paginator.Pages }}
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<span class="post-date">{{ .Site.Params.DateForm | default "Jan 2, 2006" | .Date.Format }}</span>
{{ .Content }}
</div>
{{ end }}
</div>
<div class="pagination">
{{ if $paginator.HasNext }}
<a class="pagination-item older" href="{{ $paginator.Next.URL }}">Older</a>
{{ else }}
<span class="pagination-item older">Older</span>
{{ end }}
{{ if $paginator.HasPrev }}
<a class="pagination-item newer" href="{{ $paginator.Prev.URL }}">Newer</a>
{{ else }}
<span class="pagination-item newer">Newer</span>
{{ end }}
</div>
{{ partial "default_foot.html" . }}
|