From c03914a210404b9bc0e5bef9cf67bb76cf5e2831 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Tue, 29 Sep 2026 15:33:09 -0500 Subject: [PATCH] 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",