diff options
Diffstat (limited to 'layouts/partials/series.html')
-rw-r--r-- | layouts/partials/series.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/partials/series.html b/layouts/partials/series.html new file mode 100644 index 0000000..4001838 --- /dev/null +++ b/layouts/partials/series.html @@ -0,0 +1,8 @@ +{{ $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 }} |