From 9a020e7eadb7d8203f5b01b18756c72d94773ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 9 Mar 2025 23:00:22 +0100 Subject: [PATCH] taxonomy: respect user-defined boxstyle for term-list #1047 --- assets/css/theme.css | 4 ++++ layouts/partials/term-list.html | 4 ++-- layouts/partials/version.txt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/css/theme.css b/assets/css/theme.css index cbf098cad6..dab202b1fd 100644 --- a/assets/css/theme.css +++ b/assets/css/theme.css @@ -378,6 +378,10 @@ article .R-taxonomy.tags { margin-top: 1rem; } +article .R-taxonomy.tags i { + display: none; +} + article .R-taxonomy.tags ul > li ~ li:before { content: ' '; } diff --git a/layouts/partials/term-list.html b/layouts/partials/term-list.html index 4a388174a6..ba02ce2f70 100644 --- a/layouts/partials/term-list.html +++ b/layouts/partials/term-list.html @@ -6,8 +6,8 @@ {{- if and (not $style) (eq (len $style) 0) }} {{- $color = .color | default "var(--INTERNAL-TAG-BG-color)" }} {{- end }} -{{- $icon := .icon | default "" }} -{{- $icon = trim $icon " " }} +{{- $boxStyle := partial "_relearn/boxStyle.gotmpl" (dict "style" $style "title" "" "icon" .icon) }} +{{- $icon := trim ($boxStyle.icon) " " }} {{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }} {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }} diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index b70b4ed74e..a97d409b35 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.5.0+7e773fc92a9315280c4cdf3be784e40b0d2d757a \ No newline at end of file +7.5.0+5797d81e8e09fdde6f433378d55f780e27684f56 \ No newline at end of file