diff options
| author | Reorx <novoreorx@gmail.com> | 2022-09-10 00:50:11 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-09-10 00:50:11 +0800 |
| commit | 5a324267dcfe4b2216c16078bda8f14dd4d75dbf (patch) | |
| tree | 097dd6a1ff3be40ec93e93eba810399ef05aea01 /layouts/shortcodes | |
| parent | e309c7a17d8a014a48306819ec8088552ddad853 (diff) | |
add fixedWith for image-size-control
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/image-size-control.html | 1 |
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 }} |
