{{- $page := . -}} {{- $data := dict -}} {{- if reflect.IsMap . -}} {{- with index . "Page" -}} {{- $page = . -}} {{- end -}} {{- with index . "Data" -}} {{- $data = . -}} {{- end -}} {{- end -}} {{- if eq (len $data) 0 -}} {{- $data = partialCached "head/data.html" $page $page.RelPermalink -}} {{- end -}} {{- $title := index $data "title" -}} {{- $socialTitle := index $data "socialTitle" -}} {{- $description := index $data "description" -}} {{- $openGraphImage := index $data "openGraphImage" -}} {{- $twitterImage := index $data "twitterImage" -}} {{- $robots := index $data "robots" -}} {{- $ogType := index $data "ogType" -}} {{- $locale := index $data "locale" -}} {{ $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 (index $data "pageClassification") "isArticleLike") -}} {{- with $page.Date }} {{- end }} {{- with $page.Lastmod }} {{- end }} {{- end -}}