{{- 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 }}