summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/taxonomy-url.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/taxonomy-url.html')
-rw-r--r--layouts/_partials/taxonomy-url.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_partials/taxonomy-url.html b/layouts/_partials/taxonomy-url.html
new file mode 100644
index 0000000..259cc9b
--- /dev/null
+++ b/layouts/_partials/taxonomy-url.html
@@ -0,0 +1,11 @@
+{{- /*
+Renders the URL of a taxonomy page.
+
+@context {string} taxonomy Name of the taxonomy.
+@context {site} site The site.
+
+@example: <a href="{{ partial "taxonomy-url.html" (dict taxonomy "tags" "site" .Site }}">tags</a>
+*/}}
+
+{{- $taxonomy := index .site.Taxonomies .taxonomy -}}
+{{- $taxonomy.Page.RelPermalink -}}