{{- with .Params.image }} {{- else }} {{- end }} {{- if eq .Section "blog" -}} {{- $date := ( .Date.Format "2006-02-01") -}} {{- end }}