From 6ee422259bbf582eeb17c7d79316bdd670fd07bb Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 10 Nov 2023 13:24:40 -0600 Subject: [PATCH] only load cabin on prod --- config/_default/params.toml | 2 ++ config/local/params.toml | 3 ++- config/preview/params.toml | 3 ++- layouts/partials/head.html | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 4169fed..470d9ac 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -15,6 +15,8 @@ utterancesRepo = "jbowdre/site-comments" utterancesIssueTerm = "og:title" utterancesTheme = "gruvbox-dark" +analytics = true + [theme] palette = "runtimeterror" diff --git a/config/local/params.toml b/config/local/params.toml index 5946a26..c8a1743 100644 --- a/config/local/params.toml +++ b/config/local/params.toml @@ -1 +1,2 @@ -comments = false \ No newline at end of file +comments = false +analytics = false \ No newline at end of file diff --git a/config/preview/params.toml b/config/preview/params.toml index 5946a26..c8a1743 100644 --- a/config/preview/params.toml +++ b/config/preview/params.toml @@ -1 +1,2 @@ -comments = false \ No newline at end of file +comments = false +analytics = false \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9ce310f..16b59ca 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,8 +19,10 @@ +{{ if .Site.Params.analytics }} +{{ end }} {{ if (findRE "