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