{{ range .AlternativeOutputFormats -}} {{ end -}} {{ $outputFormat := partial "outputformat.html" . -}} {{ if and hugo.IsProduction (ne $outputFormat "print") -}} {{ else -}} {{ 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" . -}} {{ partialCached "head-css.html" . "asdf" -}} {{ if .Site.Params.offlineSearch -}} {{ end -}} {{ if .Site.Params.prism_syntax_highlighting -}} {{ end -}} {{ template "algolia/head" . -}} {{ partial "hooks/head-end.html" . -}} {{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}} {{ if hugo.IsProduction -}} {{ $enableGtagForUniversalAnalytics := not .Site.Params.disableGtagForUniversalAnalytics -}} {{ if (or $enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}} {{ template "_internal/google_analytics_gtag.html" . -}} {{ else -}} {{ template "_internal/google_analytics_async.html" . -}} {{ end -}} {{ end -}} {{ define "algolia/head" -}} {{ if and .Site.Params.search (isset .Site.Params.search "algolia") -}} {{ end -}} {{ if ne .Site.Params.algolia_docsearch nil -}} {{ warnf `Config 'params.algolia_docsearch' is deprecated: use 'params.search.algolia' For details, see https://www.docsy.dev/docs/adding-content/search/#algolia-docsearch.` -}} {{ end -}} {{ end -}}