bobatheme/layouts/shortcodes/figure.html

16 lines
355 B
HTML
Raw Permalink Normal View History

{{ $resource := .Page.Resources.GetMatch (.Get "src") }}
2021-11-10 21:46:07 -06:00
{{ $noborder := false }}
{{ if .Get "noborder" }}
{{ $noborder = true }}
{{ end }}
{{ $hidecaption := false }}
{{ if .Get "hidecaption" }}
{{ $hidecaption = true }}
{{ end }}
<p>
2021-11-10 21:46:07 -06:00
{{ partial "figure.html" (dict "src" $resource "noborder" $noborder "hidecaption" $hidecaption) }}
</p>