{{/* cSpell:ignore docsearch opengraph outputformat */ -}} {{ $darkMode := partialCached "dark-mode-config.html" "dark-mode-global" -}} {{ if $darkMode.enable -}} {{/* Browser hints before CSS loads */ -}} {{/* Styles to set canvas colors and avoid transitions */ -}} {{/* Set theme attribute before CSS loads to prevent flash */ -}} {{ end -}} {{ range .AlternativeOutputFormats -}} {{ end -}} {{ $outputFormat := partial "outputformat.html" . -}} {{ if and hugo.IsProduction (ne $outputFormat "print") (ne .Site.Language.Lang "xx") -}} {{ else -}} {{ end -}} {{ partialCached "favicons.html" . }} {{- if .IsHome -}} {{ .Site.Title -}} {{ else -}} {{ with .Title }}{{ . }} | {{ end -}} {{ .Site.Title -}} {{ end -}} {{ partial "opengraph.html" . -}} {{ partial "schema.html" . -}} {{ partial "twitter_cards.html" . -}} {{ partialCached "head-css.html" . "head-css-cache-key" -}} {{ $jqueryUrl := "https://code.jquery.com/jquery-3.7.1.min.js" -}} {{ with resources.GetRemote $jqueryUrl }} {{ end -}} {{ if .Site.Params.offlineSearch -}} {{ $lunrUrl := "https://unpkg.com/lunr@2.3.9/lunr.min.js" -}} {{ with resources.GetRemote $lunrUrl }} {{ end -}} {{ end -}} {{ if .Site.Params.prism_syntax_highlighting -}} {{ end -}} {{ template "algolia/head" . -}} {{ partial "hooks/head-end.html" . -}} {{ 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/content/search/#algolia-docsearch.` -}} {{ end -}} {{ end -}}