diff options
-rw-r--r-- | config.toml | 8 | ||||
-rw-r--r-- | templates/page.templ | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config.toml b/config.toml index 40efd77..f6bf8ed 100644 --- a/config.toml +++ b/config.toml @@ -19,7 +19,7 @@ domains = [ oidc_host = "https://id.alanpearce.eu/" -goatcounter = "https://alanpearce-eu.goatcounter.com/count" +goatcounter = "https://stats.alanpearce.eu/count" [[taxonomies]] name = "tags" @@ -40,11 +40,11 @@ goatcounter = "https://alanpearce-eu.goatcounter.com/count" ] image-src = [ "'self'", - "https://gc.zgo.at", + "https://stats.alanpearce.eu", ] script-src = [ "'self'", - "https://gc.zgo.at", + "https://stats.alanpearce.eu", ] style-src = [ ## index.html style @@ -56,7 +56,7 @@ goatcounter = "https://alanpearce-eu.goatcounter.com/count" "https://kagi.com", ] connect-src = [ - "https://alanpearce-eu.goatcounter.com/count", + "https://stats.alanpearce.eu/count", ] require-trusted-types-for = [ "'script'", diff --git a/templates/page.templ b/templates/page.templ index 7a43485..cf08817 100644 --- a/templates/page.templ +++ b/templates/page.templ @@ -96,7 +96,7 @@ func mkURL(u config.URL, path string, title string) string { } templ counter(config *config.Config, path string, title string) { - <script data-goatcounter={ config.GoatCounter.String() } async src="https://gc.zgo.at/count.v4.js" crossorigin="anonymous" integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> + <script data-goatcounter={ config.GoatCounter.String() } async src="https://stats.alanpearce.eu/count.v4.js" crossorigin="anonymous" integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> <noscript> <img src={ string(templ.URL(mkURL(config.GoatCounter, path, title))) }/> </noscript> |