{{- if not (isset .Site.Params.plausible "dash_link") }} {{- $_text := "Upgrade your config.toml; You need [params.plausible.dash_link] = %s" }} {{- errorf $_text "your-public-dashboard-link" }} {{- end }} {{- if not site.Params.plausible.dash_disable }} {{- $dash_link := site.Params.plausible.dash_link }} {{- $dash_theme := site.Params.plausible.dash_theme | default "light"}} {{- $dash_bgcolor := "" }} {{- with site.Params.plausible.dash_bgcolor }} {{- $color_OK := . | replaceRE "#" "%23" }} {{- $dash_bgcolor = printf "&background=%s" $color_OK }} {{- end }} {{- $dash_source := printf "%s&embed=true&theme=%s%s" $dash_link $dash_theme $dash_bgcolor }}
Stats powered by Plausible Analytics
{{- end }}