apply async codemod
This commit is contained in:
@ -47,9 +47,7 @@ async function generateRSS(config, allBlogs, page = 'feed.xml') {
|
||||
|
||||
if (publishPosts.length > 0) {
|
||||
for (const tag of Object.keys(tagData)) {
|
||||
const filteredPosts = allBlogs.filter((post) =>
|
||||
post.tags.map((t) => slug(t)).includes(tag)
|
||||
)
|
||||
const filteredPosts = allBlogs.filter((post) => post.tags.map((t) => slug(t)).includes(tag))
|
||||
const rss = generateRss(config, filteredPosts, `tags/${tag}/${page}`)
|
||||
const rssPath = path.join(outputFolder, 'tags', tag)
|
||||
mkdirSync(rssPath, { recursive: true })
|
||||
|
Reference in New Issue
Block a user