blob: b20f17f65433ad412cfb0cb44aeb2115bdbda7fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{{- $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>
|