converts tags to topics

This commit is contained in:
Drew
2025-04-07 15:41:29 -06:00
parent 75114cdbbe
commit 67866adb1a
15 changed files with 27 additions and 27 deletions

View File

@ -14,9 +14,9 @@
<section>
<h2 class="text-2xl mb-4 font-bold">Topics</h2>
<div class="tag-cloud font-iosevka text-gray-600 text-sm">
{{ $tags := .Site.Taxonomies.tags }}
{{ range $tag, $pages := $tags }}
<a href="{{ "/tags/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;" data-count="{{ len $pages}}"
{{ $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>