Wires the site up to the newly-deployed self-hosted Plausible instance at plausible.reground.org, gated behind hugo.IsProduction so local dev builds never send events.
This commit is contained in:
@@ -13,6 +13,7 @@ disableKinds = ["taxonomy", "term"]
|
||||
description = "DevOps consulting, ghostwriting, and helping fiction authors find their right readers"
|
||||
author = "Will Estes"
|
||||
eec_base_url = "https://eec.reground.org"
|
||||
plausible_domain = "reground.org"
|
||||
|
||||
# [[menu.main]]
|
||||
# name = "Courses"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
{{ else }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ partial "head-analytics.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#main-content">Skip to content</a>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ with .Site.Params.plausible_domain }}
|
||||
<script defer data-domain="{{ . }}" src="https://plausible.reground.org/js/script.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user