{{- $src := .Get "src" }} {{- $path := printf "static/%s" $src | relURL }} {{- $figureId := $.Page.Scratch.Get "numFigures" }}
{{ $path | readFile | safeHTML }}
Figure {{ $figureId }}{{ with .Get "caption" }}. {{ . | markdownify }}{{ end }}