{{ if .Params.image }}
{{ .Scratch.Set "image" .Params.image }}
{{ if hasPrefix .Params.image "resource:" }}
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
{{ .Scratch.Set "image" ($resource.Fill "800x418").Permalink }}
{{ end }}
{{ end }}
{{ $image := .Scratch.Get "image" }}
{{/* Twitter-specific tags */}}
{{ if $image }}
{{ end }}
{{/* OpenGraph tags*/}}
{{ if $image }}
{{ end }}
{{ if $image }}
{{ end }}
{{ range .AlternativeOutputFormats }}
{{ end }}