{{- $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" . -}} {{- $searchPath := site.Params.search.action | relURL -}} {{- $isSearchPage := eq .RelPermalink $searchPath -}} {{- $robots := "max-image-preview:large" -}} {{- if $isSearchPage -}} {{- $robots = "noindex, follow" -}} {{- end -}} {{- $ogType := "website" -}} {{- if and .IsPage (not $isSearchPage) -}} {{- $ogType = "article" -}} {{- end -}} {{- $localeCode := site.LanguageCode | default site.Language.LanguageCode | default "fr-FR" -}} {{- $locale := replace $localeCode "-" "_" -}} {{ $title }} {{- with $description }} {{- end }} {{- with $description }} {{- end }} {{- with $socialImage.url }} {{- end }} {{- with $socialImage.width }} {{- end }} {{- with $socialImage.height }} {{- end }} {{- with $socialImage.alt }} {{- end }} {{- with $description }} {{- end }} {{- with $socialImage.url }} {{- end }} {{- with $socialImage.alt }} {{- end }} {{- if eq $ogType "article" -}} {{- with .Date }} {{- end }} {{- with .Lastmod }} {{- end }} {{- end -}}