{{- $isBlogPost := eq .Section "blog" }} {{- $ogType := cond (.IsHome) "website" "article" }} {{ $outputFormat := partial "outputformat.html" . -}} {{ if and hugo.IsProduction (ne $outputFormat "print") -}} {{ else -}} {{ end -}} {{ range .Translations -}} {{ end -}} {{ hugo.Generator }} {{ range .AlternativeOutputFormats -}} {{ end -}} {{ partialCached "favicons.html" . }} {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} {{- if hugo.IsProduction -}} {{ template "_internal/google_analytics.html" . }} {{ end }} {{ partialCached "head-css.html" . "asdf" }} {{ if and (.Site.Params.offlineSearch) (not .Site.Params.gcs_engine_id) }} {{end}} {{ partial "css.html" . }} {{ if $isBlogPost }} {{ with findRE "" .Content 1 }} {{ end }} {{ else }} {{ end }} {{- if eq (lower .Params.cid) "community" -}} {{- end -}} {{ with .Params.js }}{{ range (split . ",") }} {{ end }}{{ else }}{{ end }} {{/* make sure that head-end hook comes last */}} {{ partial "hooks/head-end.html" . }}