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