summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/image-size-control.html
blob: 679aae760faed64b0b080206f58964b7a4db7edc (plain)
1
2
3
4
5
6
<div class="image-size-control" style="
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
{{- with (.Get "height") }}height: {{ . }};{{ end -}}
">
  {{ .Page.RenderString .Inner }}
</div>