{{/* Hugo Blox: Tag Cloud */}} {{/* Documentation: https://hugoblox.com/blocks/ */}} {{/* License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */}} {{/* Initialise */}} {{ $page := .wcPage }} {{ $block := .wcBlock }} {{ $taxonomy := $block.Params.content.taxonomy | default "tags" }} {{ $fontSmall := $block.Params.design.font_size_min | default 0.8 }} {{ $fontBig := $block.Params.design.font_size_max | default 2.5 }} {{ $items_count := $block.Params.content.count }} {{ if eq $items_count 0 }} {{ $items_count = 65535 }} {{ else }} {{ $items_count = $items_count | default 20 }} {{ end }} {{/* Query */}} {{ $tags := first $items_count (index site.Taxonomies $taxonomy).ByCount }} {{ $count := len $tags }} {{ $columns := $block.Params.design.columns | default "2" }}