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 }}