From 13a5a34faa33901b3fdcc555efc6a197f2afa5ba Mon Sep 17 00:00:00 2001 From: Tobias Bauer Date: Tue, 18 Oct 2022 16:23:41 +0200 Subject: [PATCH] Button: add option for target --- layouts/partials/shortcodes/button.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}