From cd6ba1415ce06559e8a6bcf53bc4754f69444ecc Mon Sep 17 00:00:00 2001 From: Will Estes Date: Tue, 7 Jul 2026 22:39:37 -0400 Subject: [PATCH] Drop PaperMod theme, use minimal self-contained templates PaperMod's opengraph.html calls partial with a redundant "partials/" prefix that the production Hugo version (0.154.5, from the hugomods/hugo:exts build image) doesn't tolerate, breaking the build. Rather than patch a vendored theme, replaced it with plain, dependency- free layouts (baseof/index/single/list) that render the actual homepage content directly. Verified building successfully against the exact Hugo image/version the deploy pipeline uses. Co-Authored-By: Claude Sonnet 5 --- .gitmodules | 3 --- hugo.toml | 17 +---------------- layouts/_default/baseof.html | 34 ++++++++++++++++++++++++++++++++++ layouts/_default/list.html | 9 +++++++++ layouts/_default/single.html | 4 ++++ layouts/index.html | 26 ++++++++++---------------- themes/PaperMod | 1 - 7 files changed, 58 insertions(+), 36 deletions(-) delete mode 100644 .gitmodules create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html delete mode 160000 themes/PaperMod diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 89af1b0..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "themes/PaperMod"] - path = themes/PaperMod - url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/hugo.toml b/hugo.toml index 8ef107f..dfb01d7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,32 +1,17 @@ baseURL = "https://www.reground.org/" locale = "en-US" title = "ReGround" -theme = "PaperMod" enableRobotsTXT = true buildDrafts = false buildFuture = false buildExpired = false +disableKinds = ["taxonomy", "term"] [params] env = "production" description = "ReGround helps fiction authors find the readers who were always meant to find them." author = "Will Estes" - defaultTheme = "auto" - disableThemeToggle = false - ShowReadingTime = false - ShowShareButtons = false - ShowPostNavLinks = false - ShowBreadCrumbs = false - ShowCodeCopyButtons = false - ShowRssButtonInSectionTermList = false - ShowToc = false - disableSpecial1stPost = true - hidemeta = true - mainSections = ["posts"] - - [params.label] - text = "ReGround" # Menu is intentionally minimal for now — add Blog/About/Contact # entries here as those sections come online. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..53acd59 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,34 @@ + + + + + + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }} + + + + +
+ {{ block "main" . }}{{ end }} +
+ + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..426e8db --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..17b274b --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 9bb9356..5b46675 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,16 +1,10 @@ -{{- define "main" }} -
- {{- with .Params.hero_heading }} -

{{ . }}

- {{- end }} - {{- with .Params.hero_subheading }} -

{{ . }}

- {{- end }} - {{- with .Params.intro }} -
{{ . | markdownify }}
- {{- end }} - {{- if .Params.cta_text }} - {{ .Params.cta_text }} - {{- end }} -
-{{- end }} +{{ define "main" }} +

{{ .Params.hero_heading }}

+

{{ .Params.hero_subheading }}

+
{{ .Params.intro | markdownify }}
+{{ with .Params.cta_text }} +

+ {{ . }} +

+{{ end }} +{{ end }} diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index a2eb47b..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a2eb47bb4b805116dcd34c1605d39835121f8dbe