mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 10:37:20 +02:00
feat(blog): add feed xlst options to render beautiful RSS and Atom feeds (#9252)
Co-authored-by: ozakione <29860391+OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
08a893a2eb
commit
7be1feaa0a
37 changed files with 3224 additions and 113 deletions
|
@ -602,9 +602,18 @@ type BlogOptions = {
|
|||
title?: string;
|
||||
description?: string;
|
||||
copyright: string;
|
||||
|
||||
language?: string; // possible values: http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
|
||||
limit?: number | false | null; // defaults to 20
|
||||
/** Allow control over the construction of BlogFeedItems */
|
||||
// XSLT permits browsers to style and render nicely the feed XML files
|
||||
xslt?:
|
||||
| boolean
|
||||
| {
|
||||
//
|
||||
rss?: string | boolean;
|
||||
atom?: string | boolean;
|
||||
};
|
||||
// Allow control over the construction of BlogFeedItems
|
||||
createFeedItems?: (params: {
|
||||
blogPosts: BlogPost[];
|
||||
siteConfig: DocusaurusConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue