Skip to content

Commit 3402d67

Browse files
committed
only counter prod
1 parent 278bbc4 commit 3402d67

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hugo.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ module:
4040
imports:
4141
- path: github.com/adityatelange/hugo-PaperMod
4242
- path: github.com/mfg92/hugo-shortcode-gallery
43+
security:
44+
funcs:
45+
getenv:
46+
- ENV

layouts/partials/extend_head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
</style>
77
{{ end }}
88

9+
{{ if eq (os.Getenv "ENV") "PROD" }}
910
<script data-goatcounter="https://counter.dbut.dev/count"
1011
async src="//counter.dbut.dev/count.js"></script>
12+
{{ end }}

0 commit comments

Comments
 (0)