mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
feat(content-blog): support json feed (#6126)
* feat(content-blog): support json feed * feat(content-blog): support json feed * feat(content-blog): add json type to default feed options * Refactors, docs, validation * Fix test * Ammend docs * Add API doc Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
06bd44c693
commit
7e5f6bb805
9 changed files with 165 additions and 30 deletions
|
@ -550,6 +550,11 @@ export default function pluginContentBlog(
|
|||
path: 'atom.xml',
|
||||
title: `${feedTitle} Atom Feed`,
|
||||
},
|
||||
json: {
|
||||
type: 'application/json',
|
||||
path: 'feed.json',
|
||||
title: `${feedTitle} JSON Feed`,
|
||||
},
|
||||
};
|
||||
const headTags: HtmlTags = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue