9 lines
337 B
HTML
9 lines
337 B
HTML
|
{{ $taxonomy := "categories" }} {{ with .Param $taxonomy }}
|
||
|
{{ $len := (len .) }}
|
||
|
{{ range $index, $tag := . }}
|
||
|
{{ $urlTag := $tag | urlize }}
|
||
|
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $urlTag) -}}
|
||
|
<a href="{{ .Permalink }}">{{ $tag }}</a>{{ cond (eq (add $index 1) $len) "" ", " }}
|
||
|
{{- end -}}{{- end -}}
|
||
|
{{ end }}
|