{{- define "main" }} {{- $scratch := newScratch }} {{- if isset .Params "image" }} {{- $scratch.Set "image" .Params.image }} {{- else }} {{ $scratch.Set "image" .Site.Params.fallBackOgImage }} {{- end }} {{- $image := $scratch.Get "image" }} {{- $bg := (path.Join "images" $image | absLangURL) }}