From d8bc79ad2dfb4d70bfe64fa2f349398073b1b0a2 Mon Sep 17 00:00:00 2001 From: Frank Blechschmidt Date: Mon, 22 May 2023 15:58:05 -0700 Subject: Add support for cookie consent and with GA4 --- layouts/partials/head.html | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f01e36b..f658d68 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,23 +10,21 @@ - - {{ $style := resources.Get "sass/researcher.scss" | resources.ExecuteAsTemplate "sass/researcher.scss" . | toCSS | minify }} + {{ $style := resources.Get "sass/researcher.scss" | resources.ExecuteAsTemplate "sass/researcher.scss" . | toCSS | minify -}} - - {{ with .Site.Params.favicon }} - - {{ end }} + {{ with .Site.Params.favicon -}} + + {{ end -}} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{ if not .Site.IsServer }} - {{ template "_internal/google_analytics.html" . }} - {{ end }} + {{- if not .Site.IsServer -}} + {{- partial "googleanalytics.html" . -}} + {{- end -}} - {{ if .Params.noindex }} - - {{ end }} + {{ if .Params.noindex -}} + + {{ end -}} -- cgit v1.2.3 From 602e533fb26a941078db16921e8400853ba94d30 Mon Sep 17 00:00:00 2001 From: Frank Blechschmidt Date: Mon, 22 May 2023 23:20:00 -0700 Subject: Upgrade dependencies and consolidate CDN --- layouts/partials/head.html | 6 +++--- layouts/partials/math.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f658d68..88ba7ea 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,9 +7,9 @@ - - - + + + {{ $style := resources.Get "sass/researcher.scss" | resources.ExecuteAsTemplate "sass/researcher.scss" . | toCSS | minify -}} {{ with .Site.Params.favicon -}} diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 19c0502..c45386b 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -1,6 +1,6 @@ - - - + + +