From 5e46ca558ce13446c092dd9ee6a817837dd3a309 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 4 May 2024 16:44:38 +0200 Subject: Serve dependencies locally to get rid of trackers --- layouts/partials/googleanalytics.html | 18 ------------------ layouts/partials/head.html | 27 ++++++++++++--------------- layouts/partials/math.html | 17 ----------------- 3 files changed, 12 insertions(+), 50 deletions(-) delete mode 100644 layouts/partials/googleanalytics.html delete mode 100644 layouts/partials/math.html (limited to 'layouts') diff --git a/layouts/partials/googleanalytics.html b/layouts/partials/googleanalytics.html deleted file mode 100644 index 2d72d71..0000000 --- a/layouts/partials/googleanalytics.html +++ /dev/null @@ -1,18 +0,0 @@ -{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}} -{{- if not $pc.Disable }}{{ with .Site.GoogleAnalytics -}} - -{{- end -}} -{{- end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 88ba7ea..0e97a2c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,25 +6,22 @@ - - - - - {{ $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 -}} - {{- partial "googleanalytics.html" . -}} - {{- end -}} - - {{ if .Params.noindex -}} - - {{ end -}} + {{ if not .Site.IsServer }} + {{ template "_internal/google_analytics.html" . }} + {{ end }} diff --git a/layouts/partials/math.html b/layouts/partials/math.html deleted file mode 100644 index c45386b..0000000 --- a/layouts/partials/math.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - -- cgit v1.2.3