From e3ecf4aa94cececbc0caa11e3861273bacecbf53 Mon Sep 17 00:00:00 2001 From: Andrew Woodlee Date: Thu, 31 Oct 2024 23:44:12 -0500 Subject: [PATCH] update hugo.yaml --- .gitmodules | 3 +++ config.yml | 35 +++++++++++++++++++++++++++++++++++ layouts/_defaults/baseof.html | 28 ---------------------------- themes/plausible-hugo | 1 + 4 files changed, 39 insertions(+), 28 deletions(-) delete mode 100644 layouts/_defaults/baseof.html create mode 160000 themes/plausible-hugo diff --git a/.gitmodules b/.gitmodules index e64b0bd..5c55182 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "themes/PaperMod"] path = themes/PaperMod url = https://github.com/adityatelange/hugo-PaperMod.git +[submodule "themes/plausible-hugo"] + path = themes/plausible-hugo + url = https://github.com/divinerites/plausible-hugo diff --git a/config.yml b/config.yml index ffd1959..f612d0b 100644 --- a/config.yml +++ b/config.yml @@ -3,6 +3,41 @@ enableRobotsTXT: true baseurl: "https://andrewnw.xyz" title: "Andrew's Website" +theme: + - PaperMod + - 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: andrewnw.xyz + outbound_link: true + selfhosted_domain: "stats.andrewnw.com" # Self-hosted plausible domain + + +module: + imports: + - path: plausible-hugo + pygmentsstyle: "bw" pygmentscodefences: true diff --git a/layouts/_defaults/baseof.html b/layouts/_defaults/baseof.html deleted file mode 100644 index a305aa4..0000000 --- a/layouts/_defaults/baseof.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- if lt hugo.Version "0.112.4" }} -{{- errorf "=> hugo v0.112.4 or greater is required for hugo-PaperMod to build " }} -{{- end -}} - - - - - - {{- partial "head.html" . }} - {{ partialCached "analytics.html" . }} - - - - {{- partialCached "header.html" . .Page -}} -
- {{- block "main" . }}{{ end }} -
- {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}} - - - diff --git a/themes/plausible-hugo b/themes/plausible-hugo new file mode 160000 index 0000000..156a047 --- /dev/null +++ b/themes/plausible-hugo @@ -0,0 +1 @@ +Subproject commit 156a0478888cf1fe23d8f65b98e122865770d2d6