From a104a68eaab974cf4fbb829ba538bad9e7eaeea8 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 19 Jun 2024 23:52:15 +0200 Subject: [PATCH] Hide the analytics snippet while in dev mode --- themes/hugo-bearcub/layouts/_default/baseof.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/hugo-bearcub/layouts/_default/baseof.html b/themes/hugo-bearcub/layouts/_default/baseof.html index a57eaac..36ba80b 100644 --- a/themes/hugo-bearcub/layouts/_default/baseof.html +++ b/themes/hugo-bearcub/layouts/_default/baseof.html @@ -5,7 +5,9 @@ + {{ if hugo.IsProduction }} + {{ end }} {{- partial "favicon.html" . -}} {{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}