From e9d82a242153305daf39580a9fba7272382bdf03 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 2 Jun 2021 23:21:23 +0100 Subject: [PATCH] fix: nested figure in callout --- wowchemy/layouts/shortcodes/figure.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wowchemy/layouts/shortcodes/figure.html b/wowchemy/layouts/shortcodes/figure.html index 74eb7f47..fcf81b5a 100644 --- a/wowchemy/layouts/shortcodes/figure.html +++ b/wowchemy/layouts/shortcodes/figure.html @@ -26,9 +26,9 @@
{{- if $img -}} - {{ $isSVG := eq $img.MediaType.SubType "svg" }} - {{ $isGIF := eq $img.MediaType.SubType "gif" }} - {{ if $isSVG | or $isGIF -}} + {{- $isSVG := eq $img.MediaType.SubType "svg" -}} + {{- $isGIF := eq $img.MediaType.SubType "gif" -}} + {{- if $isSVG | or $isGIF -}}