summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-09-10 00:50:11 +0800
committerReorx <novoreorx@gmail.com>2022-09-10 00:50:11 +0800
commit5a324267dcfe4b2216c16078bda8f14dd4d75dbf (patch)
tree097dd6a1ff3be40ec93e93eba810399ef05aea01
parente309c7a17d8a014a48306819ec8088552ddad853 (diff)
add fixedWith for image-size-control
-rw-r--r--layouts/shortcodes/image-size-control.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/shortcodes/image-size-control.html b/layouts/shortcodes/image-size-control.html
index 679aae7..d0f8d62 100644
--- a/layouts/shortcodes/image-size-control.html
+++ b/layouts/shortcodes/image-size-control.html
@@ -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 }}