Cursor adjustments to badges section in an article.

This commit is contained in:
MaikelChan 2024-01-12 20:26:30 +01:00
parent 08305fe2f7
commit f927990504
No known key found for this signature in database
GPG key ID: B2CE398C279239EC
2 changed files with 6 additions and 8 deletions

View file

@ -51,7 +51,7 @@
{{ end }}
<div style="cursor: default;" class="flex flex-row flex-wrap items-center">
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML }}
@ -64,7 +64,7 @@
</div>
{{ if .Params.showAuthorsBadges | default (.Site.Params.article.showAuthorsBadges | default false) }}
<div style="cursor: pointer;" class="flex flex-row flex-wrap items-center">
<div class="flex flex-row flex-wrap items-center">
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if (eq $taxonomy "authors")}}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
@ -79,7 +79,7 @@
{{/* Output taxonomies */}}
{{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }}
<div style="cursor: pointer;" class="flex flex-row flex-wrap items-center">
<div class="flex flex-row flex-wrap items-center">
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if and (not (eq $taxonomy "authors")) (not (eq $taxonomy "series"))}}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}

View file

@ -1,7 +1,5 @@
<span class="flex">
<span
class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"
>
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
{{ . }}
</span>
</span>
</span>