{{- $imagePath := "" }} {{- with .Params.image }} {{- $imagePath = (printf "%s%s%s%s" "content" ($.OutputFormats.Get "html").RelPermalink "images/" .) }} {{- else }} {{- $imagePath = (printf "%s%s" "content" $.Site.Params.defaultimage) }} {{- end }} {{- $image := resources.Get $imagePath -}} {{- with $image }} {{- end }} {{- if .IsPage }} {{- if not .PublishDate.IsZero }} {{- else if not .Date.IsZero }} {{- end }} {{- with .Site.Author.facebook }} {{ end }} {{- with .Params.tags }}{{ range . }} {{ end }}{{ end }} {{- end }} {{ with .Site.Author.facebook_id }}{{ end }} {{ with .Site.Params.facebook_app_id }}{{ end }} {{- with .Site.Author.twitter }} {{- end }}