blob: c33db0471450f0121cd26c334571b3935ce2f328 (
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
34
35
36
37
38
39
|
{{ define "main" }}
<header>
<h1>
<a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"><i class="icon-rss"></i></a>{{ .Title }}
</h1>
</header>
<ul>
{{- range .Paginator.Pages -}}
<li>
<a href="{{ .Permalink }}">
{{- .Date.Format "02/01/2006" }} - {{ .Title -}}
</a>
<div class="meta">
{{- range .Params.categories -}}
<a class="categories" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">
{{- . -}}
</a>
{{- end -}}
{{- range .Params.tags -}}
<a class="tags" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
{{- . -}}
</a>
{{- end -}}
</div>
</li>
{{- end -}}
</ul>
<nav>
<p>
{{- if .Paginator.HasPrev -}}
<a href="{{ .Paginator.Prev.URL }}">« Previous</a>
{{- end -}}
<span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span>
{{- if .Paginator.HasNext -}}
<a href="{{ .Paginator.Next.URL }}">Next »</a>
{{- end -}}
</p>
</nav>
{{ end }}
|