bobatheme/layouts/shortcodes/figure.html

16 lines
338 B
HTML
Raw Normal View History

{{ $resource := $.Page.Resources.GetMatch (.Get "src") }}
{{ $border := false }}
{{ if .Get "border" }}
{{ $border = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ end }}
<p>
{{ partial "figure.html" (dict "src" $resource "border" $border "hidecaption" $hidecaption) }}
</p>