blob: 3c108c1b85b1b97d50c01d5cc4a8dc27af807031 (
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
|
{{ define "title" }}
{{ end }}
{{ define "main" }}
{{ .Page.Content }}
<BR>
added on {{ .PublishDate.Format "January 2, 2006" }}
{{- if isset .Params "tags" -}}
{{- $tagsLen := len .Params.tags -}}
{{- if gt $tagsLen 0 -}}
with tags:
{{- range $k, $v := .Params.tags -}}
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
<a href="{{ $url | absURL }}"> {{ . | title }}</a>
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
{{- end -}}
</div>
{{- end -}}
{{- end }}
<hr/>
{{ if or .Next .Prev -}}
<div>
{{- with .Prev }} <a class="prev-link" href="{{ .RelPermalink}}"> ← Previous</a> {{ end -}}
{{- with .Next -}}<a class="next-link" href="{{ .RelPermalink}}">Next →</a> {{ end -}}
</div>
{{ end -}}
{{ end }}
|