Skip to content

Commit

Permalink
Merge pull request #3104 from tangly1024/fix/rss-link-config
Browse files Browse the repository at this point in the history
rss
  • Loading branch information
tangly1024 authored Jan 1, 2025
2 parents 9b80c14 + bffcc40 commit 2e54ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/db/getSiteData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2e54ebc

Please sign in to comment.