feat(content-blog): add full blog post html into RSS/Atom feeds (#4330)

Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
moonrailgun 2021-10-08 18:59:02 +08:00 committed by GitHub
parent 198590446a
commit 6ed698976d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 377 additions and 18 deletions

View file

@ -554,19 +554,17 @@ export default function pluginContentBlog(
}
const feedTypes = options.feedOptions.type;
const {
siteConfig: {title},
} = context;
const feedTitle = options.feedOptions.title ?? context.siteConfig.title;
const feedsConfig = {
rss: {
type: 'application/rss+xml',
path: 'rss.xml',
title: `${title} Blog RSS Feed`,
title: `${feedTitle} RSS Feed`,
},
atom: {
type: 'application/atom+xml',
path: 'atom.xml',
title: `${title} Blog Atom Feed`,
title: `${feedTitle} Atom Feed`,
},
};
const headTags: HtmlTags = [];