{{- $page := .page }} {{- $class := .class | default "" }} {{- $href := (trim .href " ") | default "" }} {{- $onempty := cond (isset . "onempty") .onempty "disable" }} {{- $onwidths := cond (isset . "onwidths") .onwidths "show" }} {{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }} {{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }} {{- $type := .type | default "" }} {{- $title := (trim .title " ") | default "" }} {{- $hint := (trim .hint " ") | default "" }} {{- $icon := (trim .icon " ") | default "" }} {{- $content := .content }}
{{ partial "shortcodes/button.html" (dict "page" $page "href" $href "style" "link" "icon" $icon "borderless" true "type" $type "content" $title "hint" $hint )}} {{- if $content }}
{{- $content }}
{{- end }}