🎨 Reformat article-meta/basic.html

This commit is contained in:
Served Smart
2025-07-10 15:51:37 +02:00
parent 5e8561d83b
commit b73c64f4f5

View File

@@ -97,7 +97,9 @@
{{ if and (not (eq $taxonomy "authors")) (not (eq $taxonomy "series")) }}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
{{ range $context.GetTerms $taxonomy }}
<a class="mr-2 mt-[0.5rem] relative" href="{{ .RelPermalink }}">{{ partial "badge.html" .LinkTitle }}</a>
<a class="relative mt-[0.5rem] mr-2" href="{{ .RelPermalink }}"
>{{ partial "badge.html" .LinkTitle }}</a
>
{{ end }}
{{ end }}
{{ end }}
@@ -109,7 +111,9 @@
{{ if .Params.showCategoryOnly | default (.Site.Params.article.showCategoryOnly | default false) }}
<div class="flex flex-row flex-wrap items-center">
{{ range (.GetTerms "categories") }}
<a class="mr-2 mt-[0.5rem] relative" href="{{ .RelPermalink }}">{{ partial "badge.html" .LinkTitle }}</a>
<a class="relative mt-[0.5rem] mr-2" href="{{ .RelPermalink }}"
>{{ partial "badge.html" .LinkTitle }}</a
>
{{ end }}
</div>
{{ end }}