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

gitlab.com/maxlefou/hugo.386.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/tags.html')
-rw-r--r--layouts/partials/tags.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html
new file mode 100644
index 0000000..5650056
--- /dev/null
+++ b/layouts/partials/tags.html
@@ -0,0 +1,10 @@
+{{ $taxonomy := "tags" }}
+{{ with .Param $taxonomy }}
+{{ range $index, $tag := . }}
+{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
+<li>
+ <a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
+</li>
+{{- end -}}
+{{- end -}}
+{{ end }} \ No newline at end of file