Bootstrap Hugo site with PaperMod theme and custom homepage
Sets up the ReGround business site: PaperMod theme (v8.0) as a submodule, pinned Hugo 0.124.1, and a custom homepage hero overriding the theme's default blog-first layout with editable front-matter copy. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public/
|
||||
resources/
|
||||
.hugo_build.lock
|
||||
@@ -0,0 +1,3 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
||||
@@ -0,0 +1 @@
|
||||
hugo 0.124.1
|
||||
@@ -0,0 +1,49 @@
|
||||
:root {
|
||||
--accent: #b5533c;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--accent: #e0785f;
|
||||
}
|
||||
|
||||
.hero {
|
||||
max-width: var(--main-width);
|
||||
margin: 12vh auto 10vh;
|
||||
padding: 0 var(--gap);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-heading {
|
||||
font-size: 2.4rem;
|
||||
line-height: 1.25;
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
.hero-subheading {
|
||||
font-size: 1.25rem;
|
||||
color: var(--secondary);
|
||||
margin: 0 0 2.5rem;
|
||||
}
|
||||
|
||||
.hero-intro {
|
||||
max-width: 42rem;
|
||||
margin: 0 auto 2.5rem;
|
||||
text-align: left;
|
||||
color: var(--content);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
display: inline-block;
|
||||
padding: 0.75rem 1.75rem;
|
||||
border-radius: var(--radius);
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.hero-cta:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
title: "ReGround"
|
||||
hero_heading: "Your story deserves readers who feel it."
|
||||
hero_subheading: "ReGround helps fiction authors find the readers who were always meant to find them."
|
||||
intro: |
|
||||
Writing a novel is a years-long act of faith. Finding the readers who will
|
||||
actually connect with it shouldn't be left to chance. I work with authors
|
||||
to understand both sides of that relationship — what it took to write the
|
||||
book, and what a reader is searching for when they pick one up — and use
|
||||
that to build a path between them.
|
||||
cta_text: "Get in touch"
|
||||
cta_link: "mailto:hello@reground.org"
|
||||
---
|
||||
@@ -0,0 +1,33 @@
|
||||
baseURL = "https://www.reground.org/"
|
||||
locale = "en-US"
|
||||
title = "ReGround"
|
||||
theme = "PaperMod"
|
||||
|
||||
enableRobotsTXT = true
|
||||
buildDrafts = false
|
||||
buildFuture = false
|
||||
buildExpired = false
|
||||
|
||||
[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.
|
||||
[menu]
|
||||
@@ -0,0 +1,16 @@
|
||||
{{- 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 }}
|
||||
Submodule
+1
Submodule themes/PaperMod added at a2eb47bb4b
Reference in New Issue
Block a user