From 9c59364e45baa0a744e411139d008998da95225e Mon Sep 17 00:00:00 2001
From: JackywithaWhiteDog <b07705015@ntu.edu.tw>
Date: Sat, 10 Jul 2021 16:07:56 +0000
Subject: [PATCH] fix: if condition with gtagId (#230)
---
layouts/partials/footer.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 5a148b9..87e46ba 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -34,7 +34,7 @@
{{- partial "medium-zoom.html" .context -}}
{{- partial "math.html" .context -}}
{{- template "_internal/google_analytics_async.html" .context -}}
-{{- if and (hugo.IsProduction) (.Site.Params.gtagId) -}}
+{{- if and (hugo.IsProduction) (.context.Site.Params.gtagId) -}}
{{ partial "google-analytics-gtag-async.html" .context }}
--
Gitblit v1.10.0