From ac9d13df6e2e5ef884dbfe29732f31508f9583cd Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Thu, 31 Oct 2024 17:13:52 -0500 Subject: [PATCH] add Plausible Analytics --- hugo.yaml | 15 ++++++++++++++- layouts/partials/analytics.html | 8 +------- static/_redirects | 2 ++ 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 static/_redirects diff --git a/hugo.yaml b/hugo.yaml index 85c3e4c..0d5819a 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -2,7 +2,20 @@ baseURL: https://blog.cybershell.xyz languageCode: en-us title: CyberShell's Blog pagination.pagerSize: 5 -theme: PaperMod +theme: + - PaperMod + - plausible-hugo + +params: + plausible: + enable: true + domain: blog.cybershell.xyz + + +module: + imports: + - path: plausible-hugo + enableRobotsTXT: true buildDrafts: false diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index cba2ed2..6a3715d 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,7 +1 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 0000000..8156ab5 --- /dev/null +++ b/static/_redirects @@ -0,0 +1,2 @@ +/misc/js/script.js https://stats.andrewnw.com/js/script.js 200 +/misc/api/event https://stats.andrewnw.com/api/event 200 \ No newline at end of file