From 9ef0c1f8b1312b01942d653d6fc12c12e109a187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 29 Nov 2023 10:33:48 +0100 Subject: [PATCH] button: fix whitespace on minify #737 the resulting html must be on one line; otherwise the minifier runs havok --- layouts/partials/shortcodes/button.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/shortcodes/button.html b/layouts/partials/shortcodes/button.html index 5115dafc7b..f9d23850c7 100644 --- a/layouts/partials/shortcodes/button.html +++ b/layouts/partials/shortcodes/button.html @@ -45,9 +45,9 @@ {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }} {{- $iconposition := .iconposition | default "left" }} -{{- with $page }} +{{- with $page -}} - {{- if $isButton }} + {{- if $isButton -}} {{- else -}} @@ -61,6 +61,6 @@ {{- else -}} - {{- end }} + {{- end -}} {{- end }} \ No newline at end of file