From 4d0b976c1823b36b40d7cfb79dab6f84a55cc331 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Wed, 22 Jul 2026 20:16:15 -0400 Subject: [PATCH] Add a submissions on/off toggle with a mailing-list signup fallback accepting_submissions: false in the submissions page frontmatter now swaps the manuscript form for a closed notice and an email signup that posts to the eec service's new /subscribe endpoint, so visitors can still join the mailing list while submissions are paused. Co-Authored-By: Claude Sonnet 5 --- content/submissions/_index.md | 1 + layouts/submissions/list.html | 52 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/content/submissions/_index.md b/content/submissions/_index.md index 289a5e4..cfb3f1a 100644 --- a/content/submissions/_index.md +++ b/content/submissions/_index.md @@ -1,6 +1,7 @@ --- title: "Submissions" description: "How to submit work to Two Squirrels Press." +accepting_submissions: false --- We're always glad to look at character-driven speculative fiction and poetry. Markdown is our preferred format, but we'll happily take a `.docx`, `.odt`, or most other common document formats. diff --git a/layouts/submissions/list.html b/layouts/submissions/list.html index 0686564..9cdfc28 100644 --- a/layouts/submissions/list.html +++ b/layouts/submissions/list.html @@ -2,6 +2,7 @@

{{ .Title }}

{{ .Content }} +{{ if ne .Params.accepting_submissions false }}
@@ -65,4 +66,55 @@ }); })(); +{{ else }} +

We're not currently accepting submissions, but you can join our mailing list to hear when that changes.

+ + + + + + + + +
+

+ + +{{ end }} {{ end }}