mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
fix gitbook latest posts badge
This commit is contained in:
@@ -75,7 +75,7 @@ function getNavPagesWithLatest(allNavPages, latestPosts, post) {
|
|||||||
}
|
}
|
||||||
// 属于最新文章通常6篇 && (无阅读记录 || 最近更新时间大于上次阅读时间)
|
// 属于最新文章通常6篇 && (无阅读记录 || 最近更新时间大于上次阅读时间)
|
||||||
if (
|
if (
|
||||||
latestPosts.some(post => item?.short_id === post?.short_id) &&
|
latestPosts.some(post => post?.id.indexOf(item?.short_id) === 0) &&
|
||||||
(!postReadTime[item.short_id] ||
|
(!postReadTime[item.short_id] ||
|
||||||
postReadTime[item.short_id] < new Date(item.lastEditedDate).getTime())
|
postReadTime[item.short_id] < new Date(item.lastEditedDate).getTime())
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user