From 32d531387cb6fd82f2e8c34c1f95f6914f905024 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 2 Jun 2020 14:24:31 +0200 Subject: New shortcode `taglink`, for linking to a tag page. --- templates/shortcodes/taglink.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 templates/shortcodes/taglink.html diff --git a/templates/shortcodes/taglink.html b/templates/shortcodes/taglink.html new file mode 100644 index 0000000..6e8642e --- /dev/null +++ b/templates/shortcodes/taglink.html @@ -0,0 +1,2 @@ +{% set tag_url = get_taxonomy_url(kind="tags", name=tag) %} +{% if name %}{{ name }}{% else %}{{ tag }}{% endif %} -- cgit v1.2.3