mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-11 20:45:16 +00:00

this makes the parameter behave similar to the `tree` shortcodes item syntax, where we had no other choice in handling style/color values without introducing just another variable and making it overcomplicated
7 lines
No EOL
225 B
HTML
7 lines
No EOL
225 B
HTML
{{- $_hugo_config := `{ "version": 1 }` }}
|
|
{{- partial "shortcodes/icon.html" (dict
|
|
"page" .Page
|
|
"icon" (.Get "icon" | default (.Get 0))
|
|
"color" (.Get "color" )
|
|
"style" (.Get "style" | default (.Get 1))
|
|
) }} |