2023-06-03 22:58:23 +02:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
2023-07-27 16:54:06 +02:00
|
|
|
{{- if (.Get "icon-position") }}
|
2024-04-24 22:42:49 +02:00
|
|
|
{{- 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 }}
|
2023-07-27 16:54:06 +02:00
|
|
|
{{- end }}
|
2022-06-22 20:32:18 +02:00
|
|
|
{{- partial "shortcodes/button.html" (dict
|
2023-07-27 16:14:55 +02:00
|
|
|
"page" .Page
|
2023-01-23 22:35:43 +01:00
|
|
|
"color" (.Get "color")
|
|
|
|
"content" .Inner
|
2022-06-22 20:32:18 +02:00
|
|
|
"href" (.Get "href")
|
|
|
|
"icon" (.Get "icon")
|
2022-06-23 13:24:36 +02:00
|
|
|
"iconposition" ((.Get "iconposition") | default (.Get "icon-position"))
|
2022-06-22 20:32:18 +02:00
|
|
|
"style" (.Get "style")
|
|
|
|
"title" (.Get "title")
|
2022-10-19 18:03:38 +02:00
|
|
|
"target" (.Get "target")
|
2022-11-28 18:42:51 +01:00
|
|
|
"type" (.Get "type")
|
2022-06-22 20:32:18 +02:00
|
|
|
) }}
|