plausible update (replace hardcode with hugo module)

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

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

@ -5,6 +5,7 @@
# Refer to the theme docs for more details about each of these parameters. # Refer to the theme docs for more details about each of these parameters.
# https://jpanther.github.io/congo/docs/configuration/#theme-parameters # https://jpanther.github.io/congo/docs/configuration/#theme-parameters
theme = [ "congo", "plausible-hugo"]
# congo (default), avocado, cherry, fire, ocean, sapphire and slate. # congo (default), avocado, cherry, fire, ocean, sapphire and slate.
# colorScheme = "congo" # colorScheme = "congo"
@ -87,6 +88,15 @@ rssFullContent = false
domain = "cdn-eu.usefathom.com" domain = "cdn-eu.usefathom.com"
# domain = "network.oe7drt.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] # [plausibleAnalytics]
# domain = "oe7drt.com" # domain = "oe7drt.com"
# event = "" # event = ""

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

Loading…
Cancel
Save