Enable dedicated repost post type in admin
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
- `content/replies/{slug}.md`
|
- `content/replies/{slug}.md`
|
||||||
- `content/pages/{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`.
|
||||||
- Reposts are handled as property-based posts (`repostOf` / `repost_of`) and rendered through the `reposts` collection in the Eleventy theme.
|
- Reposts are configured as a dedicated post type (`repost`) and stored at `content/reposts/{slug}.md`.
|
||||||
|
|
||||||
## Post URLs
|
## Post URLs
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,13 @@ export default {
|
|||||||
url: `${publicationBaseUrl}/likes/{slug}/`,
|
url: `${publicationBaseUrl}/likes/{slug}/`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
repost: {
|
||||||
|
name: "Repost",
|
||||||
|
post: {
|
||||||
|
path: "content/reposts/{slug}.md",
|
||||||
|
url: `${publicationBaseUrl}/reposts/{slug}/`,
|
||||||
|
},
|
||||||
|
},
|
||||||
photo: {
|
photo: {
|
||||||
name: "Foto",
|
name: "Foto",
|
||||||
post: {
|
post: {
|
||||||
@@ -118,6 +125,7 @@ export default {
|
|||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
"@indiekit/store-github",
|
"@indiekit/store-github",
|
||||||
|
"@indiekit/post-type-repost",
|
||||||
"@rmdes/indiekit-post-type-page",
|
"@rmdes/indiekit-post-type-page",
|
||||||
"@rmdes/indiekit-preset-eleventy",
|
"@rmdes/indiekit-preset-eleventy",
|
||||||
"@rmdes/indiekit-endpoint-github",
|
"@rmdes/indiekit-endpoint-github",
|
||||||
@@ -136,6 +144,9 @@ export default {
|
|||||||
"@indiekit/endpoint-posts": {
|
"@indiekit/endpoint-posts": {
|
||||||
mountPath: "/posts",
|
mountPath: "/posts",
|
||||||
},
|
},
|
||||||
|
"@indiekit/post-type-repost": {
|
||||||
|
name: "Repost",
|
||||||
|
},
|
||||||
"@rmdes/indiekit-endpoint-github": {
|
"@rmdes/indiekit-endpoint-github": {
|
||||||
token: githubActivityToken,
|
token: githubActivityToken,
|
||||||
username: githubUsername,
|
username: githubUsername,
|
||||||
|
|||||||
Generated
+13
-1
@@ -11,6 +11,7 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@indiekit/indiekit": "^1.0.0-beta.25",
|
"@indiekit/indiekit": "^1.0.0-beta.25",
|
||||||
|
"@indiekit/post-type-repost": "^1.0.0-beta.25",
|
||||||
"@indiekit/store-github": "^1.0.0-beta.25",
|
"@indiekit/store-github": "^1.0.0-beta.25",
|
||||||
"@rmdes/indiekit-endpoint-conversations": "^2.1.6",
|
"@rmdes/indiekit-endpoint-conversations": "^2.1.6",
|
||||||
"@rmdes/indiekit-endpoint-funkwhale": "^1.0.11",
|
"@rmdes/indiekit-endpoint-funkwhale": "^1.0.11",
|
||||||
@@ -1275,6 +1276,18 @@
|
|||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@indiekit/post-type-repost": {
|
||||||
|
"version": "1.0.0-beta.25",
|
||||||
|
"resolved": "https://registry.npmjs.org/@indiekit/post-type-repost/-/post-type-repost-1.0.0-beta.25.tgz",
|
||||||
|
"integrity": "sha512-42MH/4WKr8REfVRFAR8zPvVpu6V3YXzWBgFFoBtqjuUsQvne8XAXzCp6B8E1OiVREXfZIinIPEPRz3gkQvAp5g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@indiekit/util": "^1.0.0-beta.25"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=20"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@indiekit/preset-jekyll": {
|
"node_modules/@indiekit/preset-jekyll": {
|
||||||
"version": "1.0.0-beta.25",
|
"version": "1.0.0-beta.25",
|
||||||
"resolved": "https://registry.npmjs.org/@indiekit/preset-jekyll/-/preset-jekyll-1.0.0-beta.25.tgz",
|
"resolved": "https://registry.npmjs.org/@indiekit/preset-jekyll/-/preset-jekyll-1.0.0-beta.25.tgz",
|
||||||
@@ -5590,7 +5603,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
|
"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
|
||||||
"integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==",
|
"integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ip-address": "^10.0.1",
|
"ip-address": "^10.0.1",
|
||||||
"smart-buffer": "^4.2.0"
|
"smart-buffer": "^4.2.0"
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@indiekit/indiekit": "^1.0.0-beta.25",
|
"@indiekit/indiekit": "^1.0.0-beta.25",
|
||||||
|
"@indiekit/post-type-repost": "^1.0.0-beta.25",
|
||||||
"@indiekit/store-github": "^1.0.0-beta.25",
|
"@indiekit/store-github": "^1.0.0-beta.25",
|
||||||
"@rmdes/indiekit-endpoint-conversations": "^2.1.6",
|
"@rmdes/indiekit-endpoint-conversations": "^2.1.6",
|
||||||
"@rmdes/indiekit-endpoint-funkwhale": "^1.0.11",
|
"@rmdes/indiekit-endpoint-funkwhale": "^1.0.11",
|
||||||
|
|||||||
Reference in New Issue
Block a user