{{- $nonce := (.Scratch.Get "nonce") }} {{- $nonce_base := (.Scratch.Get "nonce_base") }} {{- $domain := "" -}} {{- if site.Params.plausible.custom_js_domain -}} {{- $domain = site.Params.plausible.custom_js_domain -}} {{- else -}} {{- $domain = default "plausible.io" site.Params.plausible.selfhosted_domain -}} {{- end -}} {{- printf "'unsafe-inline' https://%s" $domain | safeHTML -}}