mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 15:10:16 +00:00
rss-file
This commit is contained in:
@@ -44,14 +44,14 @@ export async function getStaticProps() {
|
||||
}
|
||||
}
|
||||
|
||||
// 生成Feed订阅
|
||||
if (JSON.parse(BLOG.ENABLE_RSS)) {
|
||||
generateRss(props?.latestPosts || [])
|
||||
}
|
||||
// 生成robotTxt
|
||||
generateRobotsTxt()
|
||||
// 生成sitemap.xml
|
||||
generateSitemapXml({ allPages: props.allPages })
|
||||
// 生成Feed订阅
|
||||
if (JSON.parse(BLOG.ENABLE_RSS)) {
|
||||
generateRss(props?.latestPosts || [])
|
||||
}
|
||||
|
||||
delete props.allPages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user