plausible update (replace hardcode with hugo module)

main
Dominic Reich 1 year ago
parent 4666736784
commit 5a3fba86ed
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -1,6 +1,10 @@
[[imports]]
path = "github.com/jpanther/congo/v2"
[[imports]]
path = "github.com/divinerites/plausible-hugo"
[hugoVersion]
extended = true
min = "0.87.0"

@ -5,6 +5,7 @@
# Refer to the theme docs for more details about each of these parameters.
# https://jpanther.github.io/congo/docs/configuration/#theme-parameters
theme = [ "congo", "plausible-hugo"]
# congo (default), avocado, cherry, fire, ocean, sapphire and slate.
# colorScheme = "congo"
@ -87,6 +88,15 @@ rssFullContent = false
domain = "cdn-eu.usefathom.com"
# domain = "network.oe7drt.com"
[plausible]
enable = true # Whether to enable plausible tracking
domain = "oe7drt.com" # Plausible "domain" name/id in your dashboard
selfhosted_domain = "oe7drt.com" # Self-hosted plausible domain
outbound_link = true
file_downloads = true
#file_downloads_types = "sh,run"
gitstar = false
# [plausibleAnalytics]
# domain = "oe7drt.com"
# event = ""

@ -1,4 +1,2 @@
{{ if hugo.IsProduction }}
<script defer data-api="/api/event" data-domain="oe7drt.com" src="/js/script.js"></script>
{{ end }}
{{ partial "plausible_head.html" . }}

Loading…
Cancel
Save