diff --git a/layouts/partials/shortcodes/button.html b/layouts/partials/shortcodes/button.html index 7c35fef075..5115dafc7b 100644 --- a/layouts/partials/shortcodes/button.html +++ b/layouts/partials/shortcodes/button.html @@ -49,19 +49,17 @@ {{- if $isButton }} - {{- else }} + {{- else -}} {{- end }} - {{- if and $icon (eq $iconposition "left") }} - - {{- end }} - {{ $title | safeHTML }} - {{- if and $icon (eq $iconposition "right") }} - - {{- end }} - {{- if $isButton }} + {{- if and $icon (eq $iconposition "left") }}{{ end }} + {{- if and $icon (eq $iconposition "left") $title }} {{ end }} + {{- $title | safeHTML }} + {{- if and $icon (eq $iconposition "right") $title }} {{ end }} + {{- if and $icon (eq $iconposition "right") }}{{ end }} + {{- if $isButton -}} - {{- else }} + {{- else -}} {{- end }}