mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 06:22:03 +08:00
tree: use correct color for HTML color values #1067
This commit is contained in:
parent
64c314c654
commit
a5b517d1aa
@ -65,7 +65,7 @@ Codefence syntax is widely available in other Markdown parsers like GitHub and t
|
||||
|
||||
### Item Syntax
|
||||
|
||||
`<NAME> [ | <ICON> [ | <COLOR> ] ]`
|
||||
`<NAME>` [ `|` `<ICON>` [ `|` `<COLOR>` ] ]
|
||||
|
||||
The **NAME** can be followed by an optional pipe (`|`) to define an **ICON** and further optional pipe to define the icon's **COLOR**.
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
{{- range site.Params.boxStyle }}
|
||||
{{- if eq (lower .identifier) $style }}
|
||||
{{- $title := or .title (.i18n | T) }}
|
||||
{{- $set = dict "identifier" .identifier "style" $style "title" $title "icon" .icon }}
|
||||
{{- $set = dict "style" $style "title" $title "icon" .icon }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@ -46,7 +46,7 @@
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if not $set }}
|
||||
{{- $set = dict "style" $style "title" "" "icon" "" }}
|
||||
{{- $set = dict "style" "" "title" "" "icon" "" }}
|
||||
{{- end }}
|
||||
{{- if .title }}
|
||||
{{- $set = merge $set (dict "title" .title) }}
|
||||
|
@ -1 +1 @@
|
||||
7.5.0+c5d591c5149619f251e2a6de0392c513b10b31d1
|
||||
7.5.0+64c314c65460adb4477a7001dae028ccc241bcc2
|
Loading…
x
Reference in New Issue
Block a user