update submodules and add partial
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-05-18 13:35:03 -05:00
parent da46d69e45
commit 1244c55a44

View File

@@ -0,0 +1,27 @@
<!-- Version v1.0.0 relics -->
{{- 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 }}
<!-- Version > v1.1.0 check -->
{{- 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 }}
<!-- Check deprecated custom_js_domain > v2.0.0 -->
{{- 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 }}
<!-- Write console hint about leaving a star for this module on GitHub -->
{{- if or ( site.Params.plausible.gitstar ) (not (isset site.Params.plausible "gitstar")) }}
{{- if eq site.Language site.Sites.Default.Language }}
<!-- Write information IN CONSOLE about the plugin -->
{{- $warn := i18n "plausible_gitstar" }}
{{- warnf $warn }}
<!-- Write information IN SOURCE CODE about the plugin -->
{{- $_text := "<!-- Thanks for using github/divinerites/plausible-hugo v%s. Please, consider leaving a star on Github if you like it. -->" }}
{{- printf $_text site.Params.plausible_version.id | safeHTML }}
{{- end }}
{{- end }}