{{- $imagePath := "null" -}}
{{- if .Params.image }}
{{ $imagePath = (printf "%s%s%s%s" "content" (.OutputFormats.Get "html").RelPermalink "images/" .Params.image ) }}
{{- else }}
{{ $imagePath = "content/me_large.jpg" }}
{{- end -}}
{{- $imageResource := resources.Get $imagePath }}
{{- .Scratch.Set "image" $imageResource }}
{{- $image := .Scratch.Get "image" -}}
{{- if .IsPage }}
{{- if not .PublishDate.IsZero }}
{{- else if not .Date.IsZero }}
{{- end }}
{{- with .Site.Author.facebook }}
{{ end }}
{{- with .Params.tags }}{{ range . }}
{{ end }}{{ end }}
{{- end }}