{{ $shortTitle := .Site.Params.shortTitle | default "SpecDD" }} {{ $pageTitle := .Title }} {{ if and (not $pageTitle) .File }}{{ $pageTitle = .File.BaseFileName | humanize | title }}{{ end }} {{ with .Params.seoTitle }}{{ $pageTitle = . }}{{ end }} {{ $metaTitle := cond .IsHome .Site.Title (printf "%s | %s" $pageTitle $shortTitle) }} {{ $isArticle := and .IsPage (eq .Section "articles") }} {{ $isNews := and .IsPage (eq .Section "news") }} {{ $isEditorialPage := or $isArticle $isNews }} {{ $metaDescription := .Site.Params.description }} {{ $socialImage := .Site.Params.socialImage | default "/social.png" }} {{ with .Params.socialImage }}{{ $socialImage = . }}{{ end }} {{ $socialImageWidth := .Site.Params.socialImageWidth | default 1200 }} {{ with .Params.socialImageWidth }}{{ $socialImageWidth = . }}{{ end }} {{ $socialImageHeight := .Site.Params.socialImageHeight | default 630 }} {{ with .Params.socialImageHeight }}{{ $socialImageHeight = . }}{{ end }} {{ $socialImageAlt := .Site.Params.socialImageAlt | default $metaTitle }} {{ with .Params.socialImageAlt }}{{ $socialImageAlt = . }}{{ end }} {{ with index .Site.Params.pageDescriptions .RelPermalink }}{{ $metaDescription = . }}{{ end }} {{ with .Description }}{{ $metaDescription = . }}{{ end }} {{ with .Params.seoDescription }}{{ $metaDescription = . }}{{ end }}