diff --git a/README.md b/README.md index 69769dc9..7428dcf9 100644 --- a/README.md +++ b/README.md @@ -177,18 +177,20 @@ paige_bootstrap_icons: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap paige_bootstrap_scripts: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts paige_bootstrap_styles: "/my-assets/my-bootstrap.min.css" # Use local Bootstrap styles paige_date_format: "2006 January 2" # Hugo date format for page dates -paige_fathom_id: "123456" # usefathom.com account ID paige_hide_theme_comment: true # Don't put a link to this project in a code comment paige_hide_theme_link: true # Don't put a link to this project in the footer -# Analytics -paige_matomo_id: "123456" # matomo.org account ID -paige_matomo_url: "https://example.com/123456" # matomo.org account URL -paige_plausible_id: "123456" # plausible.io account ID -paige_yandex_id: "123456" # metrica.yandex.com account ID - -# Comments paige: + analytics: + fathom: # usefathom.com + account_id: "123456" + matomo: # matomo.org + account_id: "123456" + host_url: "https://example.com" + plausible: # plausible.io + account_id: "123456" + yandex: # metrica.yandex.com + account_id: "123456" comments: cactus: # cactus.chat account_id: "123456" diff --git a/layouts/partials/paige-script.html b/layouts/partials/paige-script.html index d7ac1453..1cc13755 100644 --- a/layouts/partials/paige-script.html +++ b/layouts/partials/paige-script.html @@ -10,30 +10,30 @@ {{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }} -{{ with .Site.Params.paige_fathom_id }} - +{{ with .Site.Params.paige.analytics.fathom }} + {{ end }} -{{ if and .Site.Params.paige_matomo_id .Site.Params.paige_matomo_url }} +{{ with .Site.Params.paige.analytics.matomo }} {{ end }} -{{ with .Site.Params.paige_plausible_id }} - +{{ with .Site.Params.paige.analytics.plausible }} + {{ end }} -{{ with .Site.Params.paige_yandex_id }} +{{ with .Site.Params.paige.analytics.yandex }} {{ end }}