From b277085be715b67fbc23e7017d8f48867c83ee6b Mon Sep 17 00:00:00 2001 From: Marc Duiker Date: Mon, 12 Aug 2024 13:10:02 +0000 Subject: [PATCH] Override head partial to ignore deprecated GA script Signed-off-by: Marc Duiker --- daprdocs/layouts/partials/head.html | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 daprdocs/layouts/partials/head.html diff --git a/daprdocs/layouts/partials/head.html b/daprdocs/layouts/partials/head.html new file mode 100644 index 00000000000..7bf5057343f --- /dev/null +++ b/daprdocs/layouts/partials/head.html @@ -0,0 +1,45 @@ + + +{{ hugo.Generator }} +{{ 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 -}} + +{{ $desc := .Page.Description | default (.Page.Content | safeHTML | truncate 150) -}} + +{{ 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 -}} + +{{ partial "hooks/head-end.html" . -}} \ No newline at end of file