{{- $title := site.Title -}} {{- if not .IsHome -}} {{- $title = printf "%s | %s" .Title site.Title -}} {{- end -}} {{- $socialTitle := site.Title -}} {{- if not .IsHome -}} {{- $socialTitle = .Title -}} {{- end -}} {{- $description := partial "head/description.html" . -}} {{- $socialImage := partial "head/social-image.html" . -}} {{- $openGraphImage := $socialImage.openGraph -}} {{- $twitterImage := $socialImage.twitter -}} {{- $noindex := partial "seo/noindex.html" . -}} {{- $pageClassification := partial "seo/page-classification.html" . -}} {{- $robots := "max-image-preview:large" -}} {{- if $noindex -}} {{- $robots = "noindex, follow" -}} {{- end -}} {{- $ogType := index $pageClassification "openGraphType" -}} {{- $localeCode := site.LanguageCode | default site.Language.LanguageCode | default "fr-FR" -}} {{- $locale := replace $localeCode "-" "_" -}} {{ $title }} {{- with $description }} {{- end }} {{- with $description }} {{- end }} {{- with $openGraphImage.url }} {{- end }} {{- with $openGraphImage.width }} {{- end }} {{- with $openGraphImage.height }} {{- end }} {{- with $openGraphImage.alt }} {{- end }} {{- with $description }} {{- end }} {{- with $twitterImage.url }} {{- end }} {{- with $twitterImage.alt }} {{- end }} {{- if and (eq $ogType "article") (index $pageClassification "isArticleLike") -}} {{- with .Date }} {{- end }} {{- with .Lastmod }} {{- end }} {{- end -}}