From 768ef5ccd351eeb318cbb189ebfeb874ca9d8d8e Mon Sep 17 00:00:00 2001 From: Will Estes Date: Tue, 4 Aug 2026 20:34:22 -0400 Subject: [PATCH] Add the new Grinchmas page (previous commit only captured deletions) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prior commit's git add errored on an already-removed pathspec and silently skipped every other file — this is the rest of that change: content/books/grinchmas.md (real page, no longer draft-only), layouts/books/single.html, layouts/partials/arc-redeem-form.html, hugo.toml's bookshop_base_url-driven form target, and the homepage/nav links pointing at /books/grinchmas/. Co-Authored-By: Claude Sonnet 5 --- content/_index.md | 2 +- content/books/grinchmas.md | 13 +++++- hugo.toml | 2 +- layouts/books/single.html | 11 +++++ layouts/partials/arc-redeem-form.html | 61 +++++++++++++++++++++++++++ 5 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 layouts/books/single.html create mode 100644 layouts/partials/arc-redeem-form.html diff --git a/content/_index.md b/content/_index.md index fe31299..6218fdb 100644 --- a/content/_index.md +++ b/content/_index.md @@ -5,5 +5,5 @@ description: "TODO: one-line description of Thistle & Moth" TODO: Thistle & Moth homepage copy goes here. -Get a free story: [download the reader magnet](/gift). Writers: see our +Get a free story: [download the reader magnet](/books/grinchmas/). Writers: see our [submission guidelines](/submissions). diff --git a/content/books/grinchmas.md b/content/books/grinchmas.md index d3712ac..bc0653b 100644 --- a/content/books/grinchmas.md +++ b/content/books/grinchmas.md @@ -3,5 +3,16 @@ title: "A Hallmark Grinchmas" author: "Marisol T. S. Kuhn" cover_image: "https://downloads.thistleandmoth.org/grinchmas/grinchmas-cover.png" description: "California native Bart Marley unexpectedly finds himself in the, to its mind perfect, midwestern town of Hallmark. One child refuses to give up on the stranger but is her innocence the Christmas miracle Bart needs?" -draft: true + +# Label on the signup form's submit button. +cta_text: "Send it to me" + +# Code of the bookshop ARC campaign this form redeems (see +# reground-tools/arc-campaign.sh) — thistleandmoth.org/shop/arc/. +arc_code: "grinchmas" --- +California native Bart Marley unexpectedly finds himself in the, to its +mind perfect, midwestern town of Hallmark. One child refuses to give up +on the stranger but is her innocence the Christmas miracle Bart needs? + +Get *A Hallmark Grinchmas* free — enter your email below. diff --git a/hugo.toml b/hugo.toml index 3ab89d0..c1e7637 100644 --- a/hugo.toml +++ b/hugo.toml @@ -32,7 +32,7 @@ disableKinds = ["taxonomy", "term"] [[menu.main]] name = "Free Book" - url = "/free-book/" + url = "/books/grinchmas/" weight = 30 [[menu.main]] 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..ba7a5a4 --- /dev/null +++ b/layouts/partials/arc-redeem-form.html @@ -0,0 +1,61 @@ +{{ $id := .id }} +{{ $page := .page }} +
+ + + + + +

+ +

+ + +
+

+ +