Skip to content

Commit

Permalink
Fix blog feeds not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 30, 2021
1 parent d576b28 commit 68c4e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export default function pluginContentBlog(
// TODO: we shouldn't need to re-read the posts here!
// postBuild should receive loadedContent
const blogPosts = await generateBlogPosts(contentPaths, context, options);
if (blogPosts.length) {
if (!blogPosts.length) {
return;
}
await createBlogFeedFiles({
Expand Down

0 comments on commit 68c4e07

Please sign in to comment.