mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 15:10:11 +00:00
feature:
移动端平滑滚动; 顶部菜单微调
This commit is contained in:
@@ -30,10 +30,7 @@ const Slug = ({ post, blockMap, tags, prev, next, allPosts, recommendPosts, cate
|
||||
}
|
||||
|
||||
export async function getStaticPaths () {
|
||||
const posts = []
|
||||
// if (BLOG.isProd) {
|
||||
// posts = await getAllPosts({ from: 'slug - paths', includePage: true })
|
||||
// }
|
||||
const posts = await getAllPosts({ from: 'slug - paths', includePage: true })
|
||||
return {
|
||||
paths: posts.map(row => `${BLOG.path}/article/${row.slug}`),
|
||||
fallback: true
|
||||
|
||||
Reference in New Issue
Block a user