update hugo.yaml
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Andrew Woodlee 2024-10-31 23:44:12 -05:00
parent d9f650fa3f
commit e3ecf4aa94
4 changed files with 39 additions and 28 deletions

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "themes/PaperMod"] [submodule "themes/PaperMod"]
path = themes/PaperMod path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod.git url = https://github.com/adityatelange/hugo-PaperMod.git
[submodule "themes/plausible-hugo"]
path = themes/plausible-hugo
url = https://github.com/divinerites/plausible-hugo

View File

@ -3,6 +3,41 @@ enableRobotsTXT: true
baseurl: "https://andrewnw.xyz" baseurl: "https://andrewnw.xyz"
title: "Andrew's Website" 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" pygmentsstyle: "bw"
pygmentscodefences: true pygmentscodefences: true

View File

@ -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 -}}
<!DOCTYPE html>
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
<head>
{{- partial "head.html" . }}
{{ partialCached "analytics.html" . }}
</head>
<body class="
{{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}}
{{- print "list" -}}
{{- end -}}
{{- if eq site.Params.defaultTheme `dark` -}}
{{- print " dark" }}
{{- end -}}
" id="top">
{{- partialCached "header.html" . .Page -}}
<main class="main">
{{- block "main" . }}{{ end }}
</main>
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
</body>
</html>

1
themes/plausible-hugo Submodule

@ -0,0 +1 @@
Subproject commit 156a0478888cf1fe23d8f65b98e122865770d2d6