{{/* 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 lamp for homepage, dark thumbnail for articles */}}
{{ $defaultImage := "images/default_thumbnail_dark.png" }}
{{ if .IsHome }}{{ $defaultImage = "images/lampD.png" }}{{ end }}
{{ $ogImage := printf "%s%s" .Site.BaseURL $defaultImage }}
{{ 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 }}