taxonomy: respect user-defined boxstyle for term-list #1047
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled

This commit is contained in:
Sören Weber 2025-03-09 23:00:22 +01:00
parent 5797d81e8e
commit 9a020e7ead
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 7 additions and 3 deletions

View file

@ -378,6 +378,10 @@ article .R-taxonomy.tags {
margin-top: 1rem; margin-top: 1rem;
} }
article .R-taxonomy.tags i {
display: none;
}
article .R-taxonomy.tags ul > li ~ li:before { article .R-taxonomy.tags ul > li ~ li:before {
content: ' '; content: ' ';
} }

View file

@ -6,8 +6,8 @@
{{- if and (not $style) (eq (len $style) 0) }} {{- if and (not $style) (eq (len $style) 0) }}
{{- $color = .color | default "var(--INTERNAL-TAG-BG-color)" }} {{- $color = .color | default "var(--INTERNAL-TAG-BG-color)" }}
{{- end }} {{- end }}
{{- $icon := .icon | default "" }} {{- $boxStyle := partial "_relearn/boxStyle.gotmpl" (dict "style" $style "title" "" "icon" .icon) }}
{{- $icon = trim $icon " " }} {{- $icon := trim ($boxStyle.icon) " " }}
{{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }} {{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }}
{{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- $icon = printf "fa-fw fas fa-%s" $icon }}
{{- end }} {{- end }}

View file

@ -1 +1 @@
7.5.0+7e773fc92a9315280c4cdf3be784e40b0d2d757a 7.5.0+5797d81e8e09fdde6f433378d55f780e27684f56