mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-25 07:26:49 +00:00
sitemap,robots支持NOTION_CONFIG
This commit is contained in:
@@ -56,7 +56,7 @@ export async function getStaticProps(req) {
|
||||
}
|
||||
|
||||
// 生成robotTxt
|
||||
generateRobotsTxt()
|
||||
generateRobotsTxt(props?.NOTION_CONFIG)
|
||||
// 生成Feed订阅
|
||||
if (JSON.parse(BLOG.ENABLE_RSS)) {
|
||||
generateRss(props?.NOTION_CONFIG, props?.latestPosts || [])
|
||||
|
||||
@@ -17,7 +17,7 @@ export const getServerSideProps = async ctx => {
|
||||
pageId: id,
|
||||
from: 'sitemap.xml'
|
||||
})
|
||||
const link = siteConfig('LINK', BLOG.LINK, siteData.NOTION_CONFIG)
|
||||
const link = siteConfig('LINK', '', siteData.NOTION_CONFIG)
|
||||
const localeFields = generateLocalesSitemap(link, siteData.allPages, locale)
|
||||
fields = fields.concat(localeFields)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user