mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-20 18:17:51 +02:00
refactor(v2): do not generate RSS files for empty feed (#4905)
This commit is contained in:
parent
526ce44933
commit
f71e83450f
4 changed files with 10 additions and 29 deletions
|
@ -67,7 +67,7 @@ export async function generateBlogFeed(
|
|||
}
|
||||
const {siteConfig} = context;
|
||||
const blogPosts = await generateBlogPosts(contentPaths, context, options);
|
||||
if (blogPosts == null) {
|
||||
if (!blogPosts.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue