makes partial out of tag cloud

This commit is contained in:
Drew
2025-04-22 16:36:54 -06:00
parent 6be0bd3d7b
commit 54533f62e9
3 changed files with 20 additions and 20 deletions

View File

@ -19,14 +19,8 @@
<div class="wompum-container wompum-container--no-gap">
<div class="wompum-grid" data-text="Topics" data-columns="4" data-rows="1"></div>
</div>
<div class="tag-cloud font-iosevka text-gray-600 text-sm mt-4">
{{ $topics := .Site.Taxonomies.topics }}
{{ range $tag, $pages := $topics }}
<a href="{{ "/topics/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;" data-count="{{ len $pages}}"
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
{{ $tag }}
</a>
{{ end }}
<div class="tag-cloud font-iosevka text-gray-600 my-4">
{{ partial "taxonomy-cloud" (dict "taxonomy" "topics" "Site" .Site) }}
</div>
</section>