mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 12:13:58 +00:00
fix: nested figure in callout
This commit is contained in:
1 parent
01a25ecaec
commit
e9d82a2421
1 file changed
+3
-3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user