Hide the analytics snippet while in dev mode

This commit is contained in:
Miguel de la Cruz 2024-06-19 23:52:15 +02:00
parent e4096ac846
commit a104a68eaa

View file

@ -5,7 +5,9 @@
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" /> <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ if hugo.IsProduction }}
<script defer src="https://umami.ctrlz.es/script.js" data-website-id="c9350800-e7dc-4f98-9b0e-19e6ba4bf32d"></script> <script defer src="https://umami.ctrlz.es/script.js" data-website-id="c9350800-e7dc-4f98-9b0e-19e6ba4bf32d"></script>
{{ end }}
{{- partial "favicon.html" . -}} {{- partial "favicon.html" . -}}
<title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title> <title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>