{{- with .Page.Params.BookHref -}} {{- end -}} {{- template "_internal/opengraph.html" . -}} {{ partial "docs/html-head-title" . }} {{ partial "docs/html-head-favicon" . }} {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} {{- range .Translations }} {{- end -}} {{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }} {{- if default true .Site.Params.BookSearch -}} {{- $searchJSFile := printf "%s.search.js" .Language.Lang }} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} {{ end -}} {{- if .Site.Params.BookServiceWorker -}} {{- $swJS := resources.Get "sw-register.js" | resources.ExecuteAsTemplate "sw.js" . | resources.Minify | resources.Fingerprint }} {{ end -}} {{- template "_internal/google_analytics.html" . -}} {{- with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ "" | safeHTML }} {{- define "integrity" -}} {{- if (urls.Parse .Permalink).Host -}} integrity="{{ .Data.Integrity }}" crossorigin="anonymous" {{- end -}} {{- end -}}