only load cabin on prod

This commit is contained in:
John Bowdre 2023-11-10 13:24:40 -06:00
parent ce7e2e2b3d
commit f2a3b94411
4 changed files with 8 additions and 2 deletions

View file

@ -15,6 +15,8 @@ utterancesRepo = "jbowdre/site-comments"
utterancesIssueTerm = "og:title"
utterancesTheme = "gruvbox-dark"
analytics = true
[theme]
palette = "runtimeterror"

View file

@ -1 +1,2 @@
comments = false
comments = false
analytics = false

View file

@ -1 +1,2 @@
comments = false
comments = false
analytics = false

View file

@ -19,8 +19,10 @@
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
{{ if .Site.Params.analytics }}
<!-- cabin analytics -->
<script async defer src="https://scripts.withcabin.com/hello.js"></script>
{{ end }}
<!-- syntax highlighting -->
{{ if (findRE "<pre" .Content 1) }}