fix(post-types): align all types with eleventy collections
This commit is contained in:
@@ -20,8 +20,25 @@
|
|||||||
- `content/articles/{slug}.md`
|
- `content/articles/{slug}.md`
|
||||||
- `content/notes/{slug}.md`
|
- `content/notes/{slug}.md`
|
||||||
- `content/bookmarks/{slug}.md`
|
- `content/bookmarks/{slug}.md`
|
||||||
|
- `content/likes/{slug}.md`
|
||||||
|
- `content/photos/{slug}.md`
|
||||||
|
- `content/replies/{slug}.md`
|
||||||
|
- `content/reposts/{slug}.md`
|
||||||
|
- `content/pages/{slug}.md`
|
||||||
- If these paths do not match the content repo structure, edit/delete actions can fail with GitHub `Not Found`.
|
- If these paths do not match the content repo structure, edit/delete actions can fail with GitHub `Not Found`.
|
||||||
|
|
||||||
|
## Post URLs
|
||||||
|
|
||||||
|
- Current post URLs in `publication.postTypes` are:
|
||||||
|
- `https://blog.giersig.eu/articles/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/notes/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/bookmarks/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/likes/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/photos/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/replies/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/reposts/{slug}/`
|
||||||
|
- `https://blog.giersig.eu/{slug}/` (page post type)
|
||||||
|
|
||||||
## GitHub tokens
|
## GitHub tokens
|
||||||
|
|
||||||
- Recommended for two-repo setups:
|
- Recommended for two-repo setups:
|
||||||
|
|||||||
+36
-1
@@ -41,7 +41,7 @@ export default {
|
|||||||
name: "Artikel",
|
name: "Artikel",
|
||||||
post: {
|
post: {
|
||||||
path: "content/articles/{slug}.md",
|
path: "content/articles/{slug}.md",
|
||||||
url: "https://blog.giersig.eu/posts/{slug}/",
|
url: "https://blog.giersig.eu/articles/{slug}/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
note: {
|
note: {
|
||||||
@@ -58,6 +58,41 @@ export default {
|
|||||||
url: "https://blog.giersig.eu/bookmarks/{slug}/",
|
url: "https://blog.giersig.eu/bookmarks/{slug}/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
like: {
|
||||||
|
name: "Like",
|
||||||
|
post: {
|
||||||
|
path: "content/likes/{slug}.md",
|
||||||
|
url: "https://blog.giersig.eu/likes/{slug}/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
photo: {
|
||||||
|
name: "Foto",
|
||||||
|
post: {
|
||||||
|
path: "content/photos/{slug}.md",
|
||||||
|
url: "https://blog.giersig.eu/photos/{slug}/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
reply: {
|
||||||
|
name: "Antwort",
|
||||||
|
post: {
|
||||||
|
path: "content/replies/{slug}.md",
|
||||||
|
url: "https://blog.giersig.eu/replies/{slug}/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
repost: {
|
||||||
|
name: "Repost",
|
||||||
|
post: {
|
||||||
|
path: "content/reposts/{slug}.md",
|
||||||
|
url: "https://blog.giersig.eu/reposts/{slug}/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
name: "Seite",
|
||||||
|
post: {
|
||||||
|
path: "content/pages/{slug}.md",
|
||||||
|
url: "https://blog.giersig.eu/{slug}/",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user