cach-radio/inc/themes/castanet/layouts/partials/series.html

9 lines
333 B
HTML

{{ $taxonomy := "series" }} {{ 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 }}