diff --git a/layouts/partials/shortcodes/button.html b/layouts/partials/shortcodes/button.html index a536640d91..59d826df08 100644 --- a/layouts/partials/shortcodes/button.html +++ b/layouts/partials/shortcodes/button.html @@ -2,6 +2,7 @@ {{- $content := .content }} {{- $href := .href }} {{- $style := .style | default "transparent" }} +{{- $target := .target | default "_blank" }} {{- $title := .title | default ($content) | default ($style | T) }} {{- $icon := .icon | default "" }} {{- if and (not $icon) (eq (len $icon) 0) }} @@ -17,7 +18,7 @@ {{- $iconposition := .iconposition | default "left" }} {{- with $context }} - + {{- if and $icon (eq $iconposition "left") }} {{- end }}