Syndicate posts from Indiekit using JSON Feed.
npm i @indiekit/endpoint-json-feed
Add @indiekit/endpoint-json-feed
to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/endpoint-json-feed"],
"@indiekit/endpoint-share": {
"fileName": "posts.json",
"mountPath": "/feeds",
},
}
Option | Type | Description |
---|---|---|
feedName |
string |
File name. Optional, defaults to /feed.json . |
mountPath |
string |
Path to JSON Feed. Optional, defaults to / . |