add fixedWith for image-size-control

This commit is contained in:
Reorx 2022-09-10 00:50:11 +08:00
parent e309c7a17d
commit 5a324267dc
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
<div class="image-size-control" style="
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
{{- with (.Get "fixedWidth") }}width: {{ . }};{{ end -}}
{{- with (.Get "height") }}height: {{ . }};{{ end -}}
">
{{ .Page.RenderString .Inner }}