This commit is contained in:
parent
d9f650fa3f
commit
e3ecf4aa94
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -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
|
||||||
|
35
config.yml
35
config.yml
@ -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
|
||||||
|
@ -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
1
themes/plausible-hugo
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 156a0478888cf1fe23d8f65b98e122865770d2d6
|
Loading…
Reference in New Issue
Block a user