2023-06-03 20:58:23 +00:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
2023-07-27 14:54:06 +00:00
|
|
|
{{- if (.Get "icon-position") }}
|
|
|
|
{{- warnf "%q: DEPRECATED parameter 'icon-position' for shortcode 'button' found, use 'iconposition' instead" .Page.File.Path }}
|
|
|
|
{{- end }}
|
2022-06-22 18:32:18 +00:00
|
|
|
{{- partial "shortcodes/button.html" (dict
|
2023-07-27 14:14:55 +00:00
|
|
|
"page" .Page
|
2023-01-23 21:35:43 +00:00
|
|
|
"color" (.Get "color")
|
|
|
|
"content" .Inner
|
2022-06-22 18:32:18 +00:00
|
|
|
"href" (.Get "href")
|
|
|
|
"icon" (.Get "icon")
|
2022-06-23 11:24:36 +00:00
|
|
|
"iconposition" ((.Get "iconposition") | default (.Get "icon-position"))
|
2022-06-22 18:32:18 +00:00
|
|
|
"style" (.Get "style")
|
|
|
|
"title" (.Get "title")
|
2022-10-19 16:03:38 +00:00
|
|
|
"target" (.Get "target")
|
2022-11-28 17:42:51 +00:00
|
|
|
"type" (.Get "type")
|
2022-06-22 18:32:18 +00:00
|
|
|
) }}
|