PaperModX/layouts/shortcodes/figure-img-size.html
Reorx d88771adee use height instead of max-height to control img size on parent div
this change happens on both image-size-control and figure-img-size
2022-08-11 01:18:18 +08:00

13 lines
342 B
HTML

{{- $width := .Get 1 }}
{{- $height := .Get 2 }}
<figure class="center align-center">
<div class="image-size-control" style="
{{- with $width }}max-width: {{ . }};{{ end -}}
{{- with $height }}height: {{ . }};{{ end -}}
">
{{ .Page.RenderString .Inner }}
</div>
<figcaption><p>{{ .Get 0 | markdownify }}</p></figcaption>
</figure>