diff options
| -rw-r--r-- | layouts/shortcodes/figure-img-size.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/image-size-control.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/figure-img-size.html b/layouts/shortcodes/figure-img-size.html index 62c9f20..b20f17f 100644 --- a/layouts/shortcodes/figure-img-size.html +++ b/layouts/shortcodes/figure-img-size.html @@ -3,7 +3,7 @@ <figure class="center align-center"> <div class="image-size-control" style=" {{- with $width }}max-width: {{ . }};{{ end -}} -{{- with $height }}max-height: {{ . }};{{ end -}} +{{- with $height }}height: {{ . }};{{ end -}} "> {{ .Page.RenderString .Inner }} </div> diff --git a/layouts/shortcodes/image-size-control.html b/layouts/shortcodes/image-size-control.html index 1bf374d..679aae7 100644 --- a/layouts/shortcodes/image-size-control.html +++ b/layouts/shortcodes/image-size-control.html @@ -1,6 +1,6 @@ <div class="image-size-control" style=" {{- with (.Get "width") }}max-width: {{ . }};{{ end -}} -{{- with (.Get "height") }}max-height: {{ . }};{{ end -}} +{{- with (.Get "height") }}height: {{ . }};{{ end -}} "> {{ .Page.RenderString .Inner }} </div> |
