♻️ Refactor: Autogen classes and use consistent naming

- This should greatly improve consistency
- This mainly targets one of my PRs https://github.com/nunocoracao/blowfish/pull/2211
This commit is contained in:
Served Smart
2025-06-18 16:03:01 +02:00
parent 8d940881a4
commit 17faf8b738
24 changed files with 81 additions and 113 deletions

View File

@@ -100,7 +100,7 @@
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
{{ range $context.GetTerms $taxonomy }}
<span
class="mr-2 margin-top-[0.5rem]"
class="mr-2 mt-[0.5rem]"
onclick="window.open({{ .RelPermalink }},'_self');return false;">
{{ partial "badge.html" .LinkTitle }}
</span>
@@ -115,7 +115,7 @@
{{ if .Params.showCategoryOnly | default (.Site.Params.article.showCategoryOnly | default false) }}
<div class="flex flex-row flex-wrap items-center">
{{ range (.GetTerms "categories") }}
<span class="mr-2 margin-top-[0.5rem]" onclick="window.open({{ .RelPermalink }},'_self');return false;">
<span class="mr-2 mt-[0.5rem]" onclick="window.open({{ .RelPermalink }},'_self');return false;">
{{ partial "badge.html" .LinkTitle }}
</span>
{{ end }}