fix(gitea): use .RunModeIsProd and hardcode Umami values in header template

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 10:34:21 +02:00
parent e613d766ec
commit cf32e669cb
3 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
{{if and (eq .RunMode "prod") (not .IsSigned)}}
<script defer src="{{.UmamiSrc}}" data-website-id="{{.UmamiId}}"></script>
{{if and .RunModeIsProd (not .IsSigned)}}
<script defer src="https://umami.pivoine.art/script.js" data-website-id="eee7e810-116b-408a-a46d-f51dcec217c2"></script>
{{end}}