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