{{- /* based on Hugo 0.125.5 opengraph.html */}}
{{- $format := partial "get-format.hugo" . }}
{{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }}
{{- $basename := "index" }}
{{- if eq $outputFormat "searchpage" }}
{{- $basename = partial "BaseName.hugo" $format.RelPermalink }}
{{- end }}
{{- with site.Title | plainify }}
{{- end }}
{{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true "format" $format "outputFormat" $outputFormat) | 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 }}