From 60184b2672cb0e175022475c2c00f91b2f6625d3 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Sat, 8 Aug 2026 06:24:13 -0400 Subject: [PATCH] Add Books nav link and bookshop scaffold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wires up bookshop_base_url and a "Books" nav entry ahead of Cate's first title — content/books gets a coming-soon placeholder, and the book single/ARC-redeem templates (copied from michaelferrara-site) are ready to use once there's a real book page. Co-Authored-By: Claude Sonnet 5 --- content/books/_index.md | 6 +++ hugo.toml | 6 +++ layouts/books/single.html | 11 +++++ layouts/partials/arc-redeem-form.html | 61 +++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 content/books/_index.md create mode 100644 layouts/books/single.html create mode 100644 layouts/partials/arc-redeem-form.html diff --git a/content/books/_index.md b/content/books/_index.md new file mode 100644 index 0000000..1a4b852 --- /dev/null +++ b/content/books/_index.md @@ -0,0 +1,6 @@ +--- +title: "Books" +description: "Books from Cate Conners." +--- + +Coming soon. diff --git a/hugo.toml b/hugo.toml index 6b7188c..d36c7be 100644 --- a/hugo.toml +++ b/hugo.toml @@ -13,6 +13,12 @@ disableKinds = ["taxonomy", "term"] description = "TODO: one-line author bio/description" author = "Cate Conners" eec_base_url = "https://eec.cateconners.com" + bookshop_base_url = "https://shop.cateconners.com" + +[[menu.main]] + name = "Books" + url = "/books/" + weight = 10 [[menu.footer]] name = "Contact" diff --git a/layouts/books/single.html b/layouts/books/single.html new file mode 100644 index 0000000..f6ad2bb --- /dev/null +++ b/layouts/books/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{ with .Params.cover_image }}{{ $.Title }} cover{{ end }} + {{ with .Params.hero_subhead }}

{{ . }}

{{ end }} + + {{ .Content }} + + {{ partial "arc-redeem-form.html" (dict "id" "top" "page" .) }} +
+{{ end }} diff --git a/layouts/partials/arc-redeem-form.html b/layouts/partials/arc-redeem-form.html new file mode 100644 index 0000000..2011ef2 --- /dev/null +++ b/layouts/partials/arc-redeem-form.html @@ -0,0 +1,61 @@ +{{ $id := .id }} +{{ $page := .page }} +
+ + + + + +

+ +

+ + +
+

+ +