Merge pull request #3104 from tangly1024/fix/rss-link-config

rss
This commit is contained in:
tangly1024
2025-01-01 15:20:33 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ async function converNotionToSiteDate(pageId, from, pageRecordMap) {
})
// 站点基础信息
const siteInfo = getSiteInfo({ collection, block, pageId })
const siteInfo = getSiteInfo({ collection, block, NOTION_CONFIG })
// 文章计数
let postCount = 0

View File

@@ -39,8 +39,8 @@ export async function generateRss(props) {
const SUB_PATH = NOTION_CONFIG?.SUB_PATH || BLOG.SUB_PATH
const CONTACT_EMAIL = NOTION_CONFIG?.CONTACT_EMAIL || BLOG.CONTACT_EMAIL
// 检查 feed 文件是否在30分钟内更新过
if (isFeedRecentlyUpdated('./public/rss/feed.xml', 60)) {
// 检查 feed 文件是否在10分钟内更新过
if (isFeedRecentlyUpdated('./public/rss/feed.xml', 10)) {
return
}