Skip to content

Commit

Permalink
🔀 Merge pull request #671 from bboykarlito/taxonomies-display-issue
Browse files Browse the repository at this point in the history
Fixed taxonomies display issue
  • Loading branch information
jpanther committed Oct 22, 2023
2 parents 325e393 + c99f28d commit 5b9c42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/article-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
(and (ne $scope "single") (.Params.showTaxonomies | default (.Site.Params.list.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false))))
(and (eq $scope "single") (.Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false)))
}}
<div class="my-1 text-xs leading-relaxed text-neutral-500 dark:text-neutral-400 ">
<div class="flex flex-wrap my-1 text-xs leading-relaxed text-neutral-500 dark:text-neutral-400 ">
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
{{ range $context.GetTerms $taxonomy }}
<a
href="{{ .RelPermalink }}"
class="rounded-md border border-neutral-200 px-1 py-[1px] hover:border-primary-300 hover:text-primary-700 dark:border-neutral-600 dark:hover:border-primary-600 dark:hover:text-primary-400"
class="mx-1 my-1 rounded-md border border-neutral-200 px-1 py-[1px] hover:border-primary-300 hover:text-primary-700 dark:border-neutral-600 dark:hover:border-primary-600 dark:hover:text-primary-400"
>{{ .LinkTitle }}</a
>
{{ end }}
Expand Down

0 comments on commit 5b9c42f

Please sign in to comment.