From a51cd5fe61abd41f040c1c51c2f410f741a40fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 3 Jun 2023 23:10:32 +0200 Subject: [PATCH] footnotes: revert to old syntax for most shortcodes #547 #555 complete --- layouts/partials/shortcodes/badge.html | 2 +- layouts/partials/shortcodes/button.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/shortcodes/badge.html b/layouts/partials/shortcodes/badge.html index 1c533e59d9..d38a4da73a 100644 --- a/layouts/partials/shortcodes/badge.html +++ b/layouts/partials/shortcodes/badge.html @@ -16,5 +16,5 @@ {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }} {{- with $context -}} -{{ if or $icon $title }}{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ if $title }}{{ $title | .RenderString }}{{ end }}{{ end }}{{ $content | .RenderString }} +{{ if or $icon $title }}{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ if $title }}{{ $title | .RenderString }}{{ end }}{{ end }}{{ $content }} {{- end }} \ No newline at end of file diff --git a/layouts/partials/shortcodes/button.html b/layouts/partials/shortcodes/button.html index 5ba48d5226..9f4b3bb1db 100644 --- a/layouts/partials/shortcodes/button.html +++ b/layouts/partials/shortcodes/button.html @@ -45,7 +45,7 @@ {{- if and $icon (eq $iconposition "left") }} {{- end }} - {{ $title | .RenderString }} + {{ $title }} {{- if and $icon (eq $iconposition "right") }} {{- end }}