Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/series.html')
-rw-r--r--layouts/partials/series.html8
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 }}