From 51742a40307c510d60231371917debe8658774b5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 2 Jun 2021 17:26:13 +0200 Subject: [PATCH] fix: fix rendering of nested img shortcodes (#142) * fix: fix rendering of nested img shortcodes * fix whitespaces --- layouts/shortcodes/img.html | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index a950e86..3d07356 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -17,22 +17,13 @@
- - {{ $caption }} + + {{ $caption }} - {{ with $caption }} + {{ with $caption -}}
{{ . }}{{ with $source.Params.credits }} ({{ . | $.Page.RenderString }}){{ end }}
- {{ end }} + {{- end }}
{{ end }}