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 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
||||
@@ -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.
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.LanguageCode | default "en" }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ .Site.Params.description }}">
|
||||
<style>
|
||||
:root { color-scheme: light dark; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
background: #fafafa;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body { background: #14161a; color: #e8e8e8; }
|
||||
a { color: #8ab4f8; }
|
||||
}
|
||||
main {
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
padding: 4rem 1.5rem;
|
||||
}
|
||||
a { color: #1a5fb4; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
+10
-16
@@ -1,16 +1,10 @@
|
||||
{{- define "main" }}
|
||||
<section class="hero">
|
||||
{{- with .Params.hero_heading }}
|
||||
<h1 class="hero-heading">{{ . }}</h1>
|
||||
{{- end }}
|
||||
{{- with .Params.hero_subheading }}
|
||||
<p class="hero-subheading">{{ . }}</p>
|
||||
{{- end }}
|
||||
{{- with .Params.intro }}
|
||||
<div class="hero-intro">{{ . | markdownify }}</div>
|
||||
{{- end }}
|
||||
{{- if .Params.cta_text }}
|
||||
<a class="hero-cta" href="{{ .Params.cta_link }}">{{ .Params.cta_text }}</a>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{- end }}
|
||||
{{ define "main" }}
|
||||
<h1 style="font-size:2.25rem; margin-bottom:0.5rem;">{{ .Params.hero_heading }}</h1>
|
||||
<p style="font-size:1.15rem; opacity:0.85; margin-top:0;">{{ .Params.hero_subheading }}</p>
|
||||
<div style="margin-top:2rem;">{{ .Params.intro | markdownify }}</div>
|
||||
{{ with .Params.cta_text }}
|
||||
<p style="margin-top:2rem;">
|
||||
<a href="{{ $.Params.cta_link }}" style="display:inline-block; padding:0.75rem 1.5rem; border-radius:0.4rem; background:#1a5fb4; color:#fff; text-decoration:none;">{{ . }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Submodule themes/PaperMod deleted from a2eb47bb4b
Reference in New Issue
Block a user