From 87812d1e296261fcbff707eb7c364b89949499b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 20 Apr 2024 00:26:17 +0200 Subject: [PATCH] badge: unwanted paragraph break with AsciiDoc #829 --- layouts/partials/shortcodes/badge.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/shortcodes/badge.html b/layouts/partials/shortcodes/badge.html index b74ffcd44b..ec8cb58ad0 100644 --- a/layouts/partials/shortcodes/badge.html +++ b/layouts/partials/shortcodes/badge.html @@ -26,5 +26,5 @@ {{- $icon = printf "fa-fw fas fa-%s" $icon }} {{- end }} {{- with $page -}} -{{ if or $icon $title }}{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ if $title }}{{ $title | .RenderString }}{{ end }}{{ end }}{{ $content }} +{{ if or $icon $title }}{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ if $title }}{{ $title | .RenderString }}{{ end }}{{ end }}{{ $content | safeHTML }} {{- end }} \ No newline at end of file