From fc2686da736342335a7a36a95d6c1865767773d1 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sat, 7 Mar 2026 20:54:46 +0100 Subject: [PATCH] Align post paths with content repo structure --- README.md | 9 +++++++++ indiekit.config.mjs | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 967fc9f2..3b63cfa5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ - If `MONGO_URL` is not set, config builds the URL from `MONGO_USERNAME`, `MONGO_PASSWORD`, `MONGO_HOST`, `MONGO_PORT`, `MONGO_DATABASE`, `MONGO_AUTH_SOURCE`. - For `MongoServerError: Authentication failed`, first verify `MONGO_PASSWORD`, then try `MONGO_AUTH_SOURCE=admin`. +## Content paths + +- This setup writes post files to the content repo `blog` under `content/`. +- Current paths in `publication.postTypes` are: +- `content/articles/{slug}.md` +- `content/notes/{slug}.md` +- `content/bookmarks/{slug}.md` +- If these paths do not match the content repo structure, edit/delete actions can fail with GitHub `Not Found`. + ## GitHub tokens - Recommended for two-repo setups: diff --git a/indiekit.config.mjs b/indiekit.config.mjs index d97f4bf6..60f96949 100644 --- a/indiekit.config.mjs +++ b/indiekit.config.mjs @@ -40,21 +40,21 @@ export default { article: { name: "Artikel", post: { - path: "src/posts/{slug}.md", + path: "content/articles/{slug}.md", url: "https://blog.giersig.eu/posts/{slug}/", }, }, note: { name: "Notiz", post: { - path: "src/notes/{slug}.md", + path: "content/notes/{slug}.md", url: "https://blog.giersig.eu/notes/{slug}/", }, }, bookmark: { name: "Lesezeichen", post: { - path: "src/bookmarks/{slug}.md", + path: "content/bookmarks/{slug}.md", url: "https://blog.giersig.eu/bookmarks/{slug}/", }, },