blob: 757db6f54679a40de2f6d8b23db51d82803719fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- if isset .Params "tags" -}}
{{- $tagsLen := len .Params.tags -}}
{{- if gt $tagsLen 0 -}}
<div style="clear:both" class=taglist>
{{- with .Site.Params.relatedtext }}{{ . }}<br>{{ end -}}
{{- range $k, $v := .Params.tags -}}
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
<a id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a>
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
{{- end -}}
</div>
{{- end -}}
{{- end }}
|