fix(content-blog): Fix blog feeds not generated (#5835)

This commit is contained in:
Sébastien Lorber 2021-11-02 17:28:40 +01:00 committed by GitHub
parent 44b87c7db8
commit c2009ab6b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,7 +519,7 @@ export default function pluginContentBlog(
// TODO: we shouldn't need to re-read the posts here! // TODO: we shouldn't need to re-read the posts here!
// postBuild should receive loadedContent // postBuild should receive loadedContent
const blogPosts = await generateBlogPosts(contentPaths, context, options); const blogPosts = await generateBlogPosts(contentPaths, context, options);
if (blogPosts.length) { if (!blogPosts.length) {
return; return;
} }
await createBlogFeedFiles({ await createBlogFeedFiles({