Align post paths with content repo structure
This commit is contained in:
@@ -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:
|
||||
|
||||
+3
-3
@@ -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}/",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user