{{/* description: per-page excerpt wins over site-wide description */}}
{{ $description := .Site.Language.Params.siteDescription }}
{{ with .Params.excerpt }}{{ $description = . }}{{ end }}
{{/* og:type: "article" only for single content pages that have a date */}}
{{ $ogType := "website" }}
{{ if and (eq .Kind "page") .Date }}{{ $ogType = "article" }}{{ end }}
{{/* og:image: page image wins; fall back to default dark thumbnail */}}
{{ $ogImage := printf "%s%s" .Site.BaseURL "images/default_thumbnail_dark.png" }}
{{ with .Params.image }}{{ $ogImage = printf "%s%s" $.Site.BaseURL (strings.TrimLeft "/" .) }}{{ end }}
{{/* author: page-level param wins; fall back to site param */}}
{{ $author := .Site.Params.author }}
{{ with .Params.author }}{{ $author = . }}{{ end }}
{{ if eq $ogType "article" }}
{{ end }}
{{ with .Site.Params.twitterHandle }}
{{ end }}