mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-12 08:54:08 +00:00
16 lines
No EOL
701 B
HTML
16 lines
No EOL
701 B
HTML
{{- $_hugo_config := `{ "version": 1 }` }}
|
|
{{- if (.Get "icon-position") }}
|
|
{{- warnf "%q: DEPRECATED parameter 'icon-position' for shortcode 'button' found, use 'iconposition' instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/button#parameter" .Page.File.Filename }}
|
|
{{- end }}
|
|
{{- partial "shortcodes/button.html" (dict
|
|
"page" .Page
|
|
"color" (.Get "color")
|
|
"content" .Inner
|
|
"href" (.Get "href")
|
|
"icon" (.Get "icon")
|
|
"iconposition" ((.Get "iconposition") | default (.Get "icon-position"))
|
|
"style" (.Get "style")
|
|
"title" (.Get "title")
|
|
"target" (.Get "target")
|
|
"type" (.Get "type")
|
|
) }} |