{{- /* based on Hugo 0.125.5 opengraph.html */}} {{- with site.Title | plainify }} {{- end }} {{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }} {{- end }} {{- with trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " }} {{- 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 }}