From c03914a210404b9bc0e5bef9cf67bb76cf5e2831 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Tue, 29 Sep 2026 15:33:09 -0500 Subject: [PATCH 1/6] Move Blog posts from Pages to Data in the admin menu Co-Authored-By: Claude Opus 5.5 --- docs/importing.md | 2 +- docs/updating-data-in-code.md | 2 +- src/pages/admin/adminNav.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/importing.md b/docs/importing.md index cb8b914..658df8c 100644 --- a/docs/importing.md +++ b/docs/importing.md @@ -1,6 +1,6 @@ # Importing a Word document as a blog post -Admin → Pages → Blog posts → **Import from Word** (editors and up). Pick +Admin → Data → Blog posts → **Import from Word** (editors and up). Pick a `.docx`; the server turns it into a new blog post, **unpublished**, and opens it in the editor with a note of what came over. Check it, add the authors and a cover, then tick Published. diff --git a/docs/updating-data-in-code.md b/docs/updating-data-in-code.md index 9900114..91268c3 100644 --- a/docs/updating-data-in-code.md +++ b/docs/updating-data-in-code.md @@ -29,7 +29,7 @@ what a dropdown in the admin editor says. | ------------------------------------------------------------ | ---------------- | ------------------------------------ | | A record: an event, organization, person, team, award, timeline entry | the database | editing it in the admin | | The front page's words, photos, bands, stats and paths | the database | Admin → Pages → Front page | -| Blog posts, and the Community page's blog section (headings, pins, feeds) | the database | Admin → Pages → Blog posts, and Community blog section | +| Blog posts, and the Community page's blog section (headings, pins, feeds) | the database | Admin → Data → Blog posts, and Admin → Pages → Community blog section | | The **label** a dropdown shows in the admin | code | [one file](#renaming-what-a-dropdown-shows) | | The **list of allowed values** behind a fixed dropdown | database CHECK + code | [a migration and three files](#adding-removing-or-renaming-a-stored-value) | | Navigation, page section titles, colours, the site banner, history decades, the map grid | code | [the file named below](#other-content-that-lives-in-code) | diff --git a/src/pages/admin/adminNav.ts b/src/pages/admin/adminNav.ts index 3cd9528..6566e74 100644 --- a/src/pages/admin/adminNav.ts +++ b/src/pages/admin/adminNav.ts @@ -75,6 +75,11 @@ export const DATA_NAV = { label: "People", blurb: "Bios, contact details, affiliations and awards received.", }, + { + to: "/admin/blog_posts", + label: "Blog posts", + blurb: "Posts of our own, each at /blog/…, written here or imported from Word.", + }, ], }; @@ -95,11 +100,6 @@ export const PAGES_NAV = { label: "Timeline", blurb: "What the history page shows, and the order it shows it in.", }, - { - to: "/admin/blog_posts", - label: "Blog posts", - blurb: "Posts of our own, each at /blog/…", - }, { to: "/admin/community_page", label: "Community blog section", From 5dceeb5860181d1df9183e3730e4f33de275427a Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Tue, 29 Sep 2026 15:34:43 -0500 Subject: [PATCH 2/6] Let a blog post be downloaded as a PDF Download PDF beside the byline opens the browser's print dialog (Save as PDF) with a print layout: the site's header, footer and notices hidden, the contents column dropped, the light palette whatever the screen shows, and at the bottom the post's link and a QR code of it. Co-Authored-By: Claude Opus 5.5 --- src/components/Layout.tsx | 6 +++--- src/components/PostContents.tsx | 4 ++-- src/index.css | 31 +++++++++++++++++++++++++++++++ src/pages/BlogPost.tsx | 27 +++++++++++++++++++++++++-- 4 files changed, 61 insertions(+), 7 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 0cff43e..cc32c18 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -175,7 +175,7 @@ export default function Layout() { {/* ── NAV ─────────────────────────────────────────────── */}
@@ -273,7 +273,7 @@ export default function Layout() {
{/* Keeps page content clear of the fixed header */} -
+
{/* Page content */}
@@ -283,7 +283,7 @@ export default function Layout() {
{/*Site Footer applied to every page*/} -
+
diff --git a/src/components/PostContents.tsx b/src/components/PostContents.tsx index 0ad8f4d..71ef0af 100644 --- a/src/components/PostContents.tsx +++ b/src/components/PostContents.tsx @@ -74,7 +74,7 @@ export default function PostContents({ entries }: { entries: ContentsEntry[] }) const lit = useLit(entries) return ( <> -
+
On this page
@@ -82,7 +82,7 @@ export default function PostContents({ entries }: { entries: ContentsEntry[] })