summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/shortcodes/taglink.html2
1 files changed, 2 insertions, 0 deletions
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) %}
+<a href="{{ tag_url | safe }}" class="taglink">{% if name %}{{ name }}{% else %}{{ tag }}{% endif %}</a>