{{- with $.Params.images -}} {{ else -}} {{- $images := $.Resources.ByType "image" -}} {{- $featured := partial (printf "%s/%s" ($.Scratch.Get "pathName") "head/get-featured-image.html") . }} {{- with $featured -}} {{- else -}} {{- with $.Site.Params.images -}} {{ else -}} {{- end -}} {{- end -}} {{- end }} {{ with .Site.Params.twitter -}} {{ end -}}