From 1244c55a444663cb595979e5ed97307c0cadd33b Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Mon, 18 May 2026 13:35:03 -0500 Subject: [PATCH] update submodules and add partial --- layouts/partials/plausible_check.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 layouts/partials/plausible_check.html diff --git a/layouts/partials/plausible_check.html b/layouts/partials/plausible_check.html new file mode 100644 index 0000000..e88f930 --- /dev/null +++ b/layouts/partials/plausible_check.html @@ -0,0 +1,27 @@ + +{{- if isset site.Params.plausible "analytics" }} + {{- $_text := "plausible-hugo module : Upgrade your config.toml; You have trace of v1.0.0 in [params.plausible.analytics] : %s" }} + {{- errorf $_text site.Params.plausible.analytics }} +{{- end }} + +{{- if not (isset site.Params.plausible "domain") }} + {{- $_text := "plausible-hugo module : Upgrade your config.toml; You need [params.plausible.domain] : %s" }} + {{- errorf $_text "your-plausible-domain-id" }} +{{- end }} + +{{- if isset site.Params.plausible "custom_js_domain" }} + {{- $_text := "plausible-hugo module : `custom_js_domain` %s is now deprecated. Use `proxy_netlify` instead and follow instruction for easy setup." }} + {{- warnf $_text site.Params.plausible.custom_js_domain }} +{{- end }} + + +{{- if or ( site.Params.plausible.gitstar ) (not (isset site.Params.plausible "gitstar")) }} +{{- if eq site.Language site.Sites.Default.Language }} + + {{- $warn := i18n "plausible_gitstar" }} + {{- warnf $warn }} + + {{- $_text := "" }} + {{- printf $_text site.Params.plausible_version.id | safeHTML }} +{{- end }} +{{- end }}