修复:侧边栏部分文章404的问题

This commit is contained in:
2022-08-23 09:45:15 +08:00
parent 57db807f1d
commit 6bf163d7bd

View File

@@ -59,14 +59,14 @@ function getItemsByDate (path: string) {
// 向置顶分组前追加标题 // 向置顶分组前追加标题
topArticleItems.unshift({ topArticleItems.unshift({
text: data.title, text: data.title,
link: `/${path}/${year}/${month}/${day}/${data.title}` link: `/${path}/${year}/${month}/${day}/${article.name.replace('.md', '')}`
}) })
} }
// 向年份分组前追加标题 // 向年份分组前追加标题
articleItems.unshift({ articleItems.unshift({
text: data.title, text: data.title,
link: `/${path}/${year}/${month}/${day}/${data.title}` link: `/${path}/${year}/${month}/${day}/${article.name.replace('.md', '')}`
}) })
}) })
}) })