From 0a5b9a8789b011e615858015c6de88c9ad6cbdcb Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Thu, 31 Oct 2024 18:54:07 -0500 Subject: [PATCH] add Plausible to head --- hugo.yaml | 19 +++++++++++++++++++ layouts/_defaults/baseof.html | 1 + layouts/partials/analytics.html | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/hugo.yaml b/hugo.yaml index da13e3a..c74c76b 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -7,6 +7,25 @@ theme: - plausible-hugo params: + csp: + childsrc: + - "'self'" + fontsrc: + - "'self'" + formaction: + - "'self'" + framesrc: + - "'self'" + imgsrc: + - "'self'" + objectsrc: + - "'none'" + stylesrc: + - "'self'" + scriptsrc: + - "'self'" + - "'https://stats.andrewnw.com'" + plausible: enable: true domain: blog.cybershell.xyz diff --git a/layouts/_defaults/baseof.html b/layouts/_defaults/baseof.html index e936c16..ab8d2c3 100644 --- a/layouts/_defaults/baseof.html +++ b/layouts/_defaults/baseof.html @@ -8,6 +8,7 @@ {{- partial "head.html" . }} {{ partial "plausible_head.html" . }} + {{ partial "analytics.html" . }} --> \ No newline at end of file + \ No newline at end of file