blob: bc058fb734764c894251d806aa8fd7df836c6ee3 (
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 "main" }}
<article>
{{ partial "partials/full_post.html" . }}
{{- if not (in .Params.category "pages") }}
<BR>
{{- 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 -}}
{{- end -}}
{{- end }}
</article>
{{ 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 }}
{{ end }}
|