mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 23:16:52 +00:00
Merge branch 'main' into feat/post/extract-page-content
This commit is contained in:
@@ -6,6 +6,7 @@ import { generateRss } from '@/lib/rss'
|
||||
import { generateSitemapXml } from '@/lib/sitemap.xml'
|
||||
import { DynamicLayout } from '@/themes/theme'
|
||||
import { generateRedirectJson } from '@/lib/redirect'
|
||||
import { checkDataFromAlgolia } from '@/lib/plugins/algolia'
|
||||
|
||||
/**
|
||||
* 首页布局
|
||||
@@ -61,6 +62,8 @@ export async function getStaticProps(req) {
|
||||
generateRss(props)
|
||||
// 生成
|
||||
generateSitemapXml(props)
|
||||
// 检查数据是否需要从algolia删除
|
||||
checkDataFromAlgolia(props)
|
||||
if (siteConfig('UUID_REDIRECT', false, props?.NOTION_CONFIG)) {
|
||||
// 生成重定向 JSON
|
||||
generateRedirectJson(props)
|
||||
|
||||
Reference in New Issue
Block a user