mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-03-13 12:50:19 +00:00
taxonomy: respect user-defined boxstyle for term-list #1047
This commit is contained in:
parent
5797d81e8e
commit
9a020e7ead
3 changed files with 7 additions and 3 deletions
|
@ -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: ' ';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7.5.0+7e773fc92a9315280c4cdf3be784e40b0d2d757a
|
7.5.0+5797d81e8e09fdde6f433378d55f780e27684f56
|
Loading…
Add table
Reference in a new issue