diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-16 01:21:02 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-16 01:21:02 +0200 |
commit | c0d248d18c4d2a8921ef59377c26382abbffe8c3 (patch) | |
tree | fa28596ff7a5f3dda63174ffa58b21ee81e99e79 /layouts/shortcodes/tagcloud.html | |
parent | accd771c040f2869e2e464d33cb90e70576ba7e1 (diff) |
Update hugo framework
Diffstat (limited to 'layouts/shortcodes/tagcloud.html')
-rw-r--r-- | layouts/shortcodes/tagcloud.html | 3 |
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 }} |