{{- /* based on Hugo 0.125.5 opengraph.html */}}
{{- $basename := "index" }}
{{- if eq .Kind "home" }}
{{- $format := partial "get-format.hugo" . }}
{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
{{- if eq $outputFormat "searchpage" }}
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
{{- end }}
{{- end }}
{{- with site.Title | plainify }}
{{- end }}
{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }}
{{- end }}
{{- with or .Description .Summary | plainify | htmlUnescape | chomp }}
{{- end }}
{{- with site.Language.LanguageCode }}
{{- end }}
{{- if .IsPage }}
{{- with .FirstSection }}
{{- end }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" }}
{{- with or .PublishDate .Date }}
{{- end }}
{{- with .Lastmod }}
{{- end }}
{{- range .GetTerms "tags" | first 6 }}
{{- end }}
{{- else }}
{{- end }}
{{- with partial "_funcs/get-page-images" . }}
{{- range . | first 6 }}
{{- end }}
{{- end }}
{{- with .Params.audio }}
{{- range . | first 6 }}
{{- end }}
{{- end }}
{{- with .Params.videos }}
{{- range . | first 6 }}
{{- end }}
{{- end }}
{{- range .GetTerms "series" }}
{{- range .Pages | first 7 }}
{{- if ne $ . }}
{{- end }}
{{- end }}
{{- end }}
{{- $facebookApp := "" }}
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- with .facebook_app_id }}
{{- $facebookApp = . }}
{{- end }}
{{- end }}
{{- end }}
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- with .facebook_app_id }}
{{- else }}
{{- with .facebook_admin }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}