mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-29 15:25:56 +00:00
Use dictionary to pass whether to use a secondaryColor for the badge.
This commit is contained in:
3 files changed
+16
-14
No files matched your search
@@ -103,11 +103,8 @@
|
||||
{{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }}
|
||||
{{ if (eq $taxonomy "categories") }}
|
||||
<a class="relative mt-[0.5rem] me-2" href="{{ .RelPermalink }}">
|
||||
{{ if .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }}
|
||||
{{ partial "badge-secondary.html" .LinkTitle }}
|
||||
{{ else }}
|
||||
{{ partial "badge.html" .LinkTitle }}
|
||||
{{ end }}
|
||||
{{ $useSecondaryColor := .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }}
|
||||
{{ partial "badge.html" (dict "linkTitle" .LinkTitle "useSecondaryColor" $useSecondaryColor) }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user