summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/tagcloud.html
diff options
context:
space:
mode:
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 }}