{{ "" | safeHTML -}} {{- $author := cond (and .IsPage .Params.author) .Params.author site.Params.Author.Name }} {{- $siteTitle := or site.Title site.Params.title | plainify }} {{- $permalink := .Permalink }} {{- $title := cond .IsHome $siteTitle (printf "%s | %s" .Title $siteTitle) | plainify }} {{- $desc := or .Params.Subtitle .Params.Description .Description .Summary }} {{- $siteDesc := or site.Params.description site.Params.subtitle }} {{- if and .IsHome $siteDesc }} {{- $desc = $siteDesc }} {{- else if and (not .IsPage) $siteDesc }} {{- $desc = printf "%s | %s" .Kind $siteTitle }} {{- end }} {{- $desc = $desc | plainify | htmlUnescape | truncate 150 }} {{- $cover := partial "page/cover.html" (dict "page" .) }} {{- if and (not $cover) (not .IsPage) }} {{- $cover = or site.Params.images site.Params.socialCard }} {{- end }} {{- $keywords := dict }} {{- $tag := or .Params.keywords .Params.tags }} {{- if .IsHome }} {{- $keywords = slice (i18n "home") }} {{- else if $tag }} {{- $keywords = $tag }} {{- end }}