aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2023-05-23 21:22:24 +0200
committerGitHub <noreply@github.com>2023-05-23 21:22:24 +0200
commit2fedeefb4506d0a6f6fd3f6629bd1ce0b09805be (patch)
tree4e98671141097ebd2f19f8e6cbb0bac83af3af92 /layouts/_default
parentbbc9b60f3ac541d1661f7447e1568d76c419d4f9 (diff)
parent602e533fb26a941078db16921e8400853ba94d30 (diff)
Merge pull request #34 from FraBle/master
Add support for cookie consent with Google Analytics 4
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 237c540..18ea882 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -10,5 +10,9 @@
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
+
+ {{ if not .Site.IsServer }}
+ {{- partial "consent.html" . -}}
+ {{ end }}
</body>
</html>