From 42b3cb29f49a6787c2147233a0598d16c6c7cf77 Mon Sep 17 00:00:00 2001
From: Mario Rimann <mario@rimann.org>
Date: Sun, 11 Oct 2026 08:38:50 +0000
Subject: [PATCH] fix: remove duplicate inclusion of the footer.html (#591)

---
 layouts/_default/baseof.html |    8 ++++++++
 layouts/partials/footer.html |    7 -------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f1071d..77a385b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -35,6 +35,14 @@
 
     {{- partial "footer.html" (dict "context" . "footerClassModifier" "base") -}}
 
+    {{- partial "medium-zoom.html" . -}}
+    {{- if (hasPrefix .Site.Config.Services.GoogleAnalytics.ID "G-") -}}
+      {{- template "_internal/google_analytics.html" . -}}
+    {{- end -}}
+    {{- if and (hugo.IsProduction) (.Site.Params.gtagId) -}}
+      {{ partial "google-analytics-gtag-async.html" . }}
+    {{- end -}}
+
     {{- if (eq .Site.Params.simpleAnalytics.enable true) -}}
       {{- partial "analytics/simpleanalytics.html" . -}}
     {{- end -}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8cedb9d..53a0807 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -41,10 +41,3 @@
     {{ end }}
   </ul>
 </footer>
-{{- partial "medium-zoom.html" .context -}}
-{{- if (hasPrefix .context.Site.Config.Services.GoogleAnalytics.ID "G-") -}}
-  {{- template "_internal/google_analytics.html" .context -}}
-{{- end -}}
-{{- if and (hugo.IsProduction) (.context.Site.Params.gtagId) -}}
-  {{ partial "google-analytics-gtag-async.html" .context }}
-{{- end -}}

--
Gitblit v1.10.0