{{- $image := "" }} {{- with .Params.image }} {{- $image = resources.Get (printf "%s%s%s%s" "content" ($.OutputFormats.Get "html").RelPermalink "images/" .) }} {{- else }} {{- $image = resources.Get (printf "%s%s" "content" $.Site.Params.defaultimage) }} {{- end }} {{- 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.facebookid }}{{ end }} {{ with .Site.Params.facebookappid }}{{ end }} {{- with .Site.Author.twitter }} {{- end }}