{{- if not (.page.Scratch.Get "figurecount") }}{{ end }} {{- .page.Scratch.Add "figurecount" 1 }} {{ $baseURL := .page.Site.BaseURL }}