From fb21a51b8b94b3661526708a6ada05bfd9331cdf Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Wed, 4 Sep 2019 22:46:31 -0400 Subject: [PATCH] valid HTML - don't use px in img width and don't put figures in paragraphs --- layouts/shortcodes/image.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index 08e80ded..c0ba6b5d 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -1,16 +1,14 @@ -

{{ if .Get "caption"}}

+{{ else }} +

{{ end }} -{{ .Get +{{ .Get {{ if .Get "caption"}}

{{ .Get "caption" }}
+{{ else }} +

{{ end }} -

\ No newline at end of file