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 -}} -