adjusts tag cloud size

This commit is contained in:
Drew 2025-03-21 16:35:23 -06:00
parent 0bde9892b0
commit a145ee2e65

View File

@ -32,32 +32,12 @@
</section> </section>
<section> <section>
<h2 class="text-4xl mb-4 font-iosevka">Facilitators</h2> <h2 class="text-4xl mb-4 font-iosevka">Topics</h2>
<div class="tag-cloud font-iosevka text-gray-600"> <div class="tag-cloud font-iosevka text-gray-600 text-sm">
{{ $facilitators := slice }}
{{ range .Site.RegularPages }}
{{ with .Params.facilitator }}
{{ $facilitators = $facilitators | append . }}
{{ end }}
{{ end }}
{{ $facilitators = $facilitators | uniq | sort }}
{{ range $facilitator := $facilitators }}
<a href="{{ "/facilitators/" | relLangURL }}{{ $facilitator | urlize }}"
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
style="font-size: 1rem;">
{{ $facilitator }}
</a>
{{ end }}
</div>
</section>
<section>
<h2 class="text-4xl mb-4 font-iosevka">Tags</h2>
<div class="tag-cloud font-iosevka text-gray-600">
{{ $tags := .Site.Taxonomies.tags }} {{ $tags := .Site.Taxonomies.tags }}
{{ range $tag, $pages := $tags }} {{ range $tag, $pages := $tags }}
<a href="{{ "/tags/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;" <a href="{{ "/tags/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;" data-count="{{ len $pages}}"
class="tag text-sm inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"> class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
{{ $tag }} {{ $tag }}
</a> </a>
{{ end }} {{ end }}