mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
feat: make it easier to upscale figure images
This commit is contained in:
1 parent
1475a49114
commit
f9505c2803
1 file changed
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
<figure {{ with .Get "class" }}class="{{.}}"{{end}} {{ with $id }}id="figure-{{ . }}"{{ end }}>
|
||||
<div class="d-flex justify-content-center">
|
||||
<div {{ with .Get "max_width" }}style="max-width: {{.}}"{{end}}>
|
||||
<div class="w-100" {{ with .Get "max_width" }}style="max-width: {{.}}"{{end}}>
|
||||
{{- if $img -}}
|
||||
{{ $isSVG := eq $img.MediaType.SubType "svg" }}
|
||||
{{ if $isSVG -}}
|
||||
|
||||
Reference in new issue
Block a user