fix(文章排序)

This commit is contained in:
LooseLi
2025-03-31 11:01:55 +08:00
parent 61bdfef701
commit 8e0dd0b974

View File

@@ -245,7 +245,7 @@ async function convertNotionToSiteDate(pageId, from, pageRecordMap) {
})
// Sort by date
if (siteConfig('POSTS_SORT_BY', '', NOTION_CONFIG) === 'date') {
if (siteConfig('POSTS_SORT_BY', null, NOTION_CONFIG) === 'date') {
allPages.sort((a, b) => {
return b?.publishDate - a?.publishDate
})