From 496b2b1ea274812c26ccbd368e969dbddfa53272 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 30 Mar 2024 21:54:34 +0200 Subject: [PATCH] head.html: include analytics only for production (#453) --- src/layouts/partials/head.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/partials/head.html b/src/layouts/partials/head.html index b1b5f1713..31ce3eb3c 100644 --- a/src/layouts/partials/head.html +++ b/src/layouts/partials/head.html @@ -24,4 +24,6 @@ {{ partial "stylesheet" . -}} {{ partial "favicons" . -}} {{ partial "social" . -}} +{{- if hugo.IsProduction }} {{ partial "analytics" . -}} +{{- end }}