summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/tagcloud.html
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-16 01:21:02 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-16 01:21:02 +0200
commitc0d248d18c4d2a8921ef59377c26382abbffe8c3 (patch)
treefa28596ff7a5f3dda63174ffa58b21ee81e99e79 /layouts/shortcodes/tagcloud.html
parentaccd771c040f2869e2e464d33cb90e70576ba7e1 (diff)
Update hugo framework
Diffstat (limited to 'layouts/shortcodes/tagcloud.html')
-rw-r--r--layouts/shortcodes/tagcloud.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/shortcodes/tagcloud.html b/layouts/shortcodes/tagcloud.html
new file mode 100644
index 0000000..0cf0118
--- /dev/null
+++ b/layouts/shortcodes/tagcloud.html
@@ -0,0 +1,3 @@
+{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <ul id="tagcloud">
+ {{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<li><a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a></li>
+ {{ end }}</ul>{{ end }}{{ end }}