Browse Source

fix: nested figure in callout

George Cushen 3 năm trước cách đây
mục cha
commit
e9d82a2421
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      wowchemy/layouts/shortcodes/figure.html

+ 3 - 3
wowchemy/layouts/shortcodes/figure.html

@@ -26,9 +26,9 @@
   <div class="d-flex justify-content-center">
     <div class="w-100" {{ with .Get "max_width" }}style="max-width: {{.}}"{{end}}>
       {{- 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 -}}
           <img alt="{{ $alt }}"
            src="{{ $img.RelPermalink }}"
            loading="lazy"