File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 103103 {{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }}
104104 {{ if (eq $taxonomy "categories") }}
105105 < a class ="relative mt-[0.5rem] me-2 " href ="{{ .RelPermalink }} ">
106- {{ if .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }}
107- {{ partial "badge-secondary.html" .LinkTitle }}
108- {{ else }}
109- {{ partial "badge.html" .LinkTitle }}
110- {{ end }}
106+ {{ $useSecondaryColor := .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }}
107+ {{ partial "badge.html" (dict "linkTitle" .LinkTitle "useSecondaryColor" $useSecondaryColor) }}
111108 </ a >
112109 {{ end }}
113110 {{ end }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11< span class ="flex cursor-pointer ">
2- < span
3- 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 ">
4- {{ . }}
2+ {{ $linkTitle := . }}
3+ {{ $useSecondaryColor := false }}
4+ {{ if (reflect.IsMap . ) }}
5+ {{ $linkTitle = .linkTitle }}
6+ {{ $useSecondaryColor = cond (not .useSecondaryColor) false .useSecondaryColor }}
7+ {{ end }}
8+ {{ if $useSecondaryColor }}
9+ < span
10+ class ="rounded-md border border-secondary-400 px-1 py-[1px] text-xs font-normal text-secondary-700 dark:border-secondary-600 dark:text-secondary-400 ">
11+ {{ else }}
12+ < span
13+ 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 ">
14+ {{ end }}
15+ {{ $linkTitle }}
516 </ span >
617</ span >
You can’t perform that action at this time.
0 commit comments