mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 15:09:43 +00:00
feature:
修复错误单词,修复slug页错误的allPosts
This commit is contained in:
@@ -27,7 +27,7 @@ import 'prismjs/components/prism-typescript'
|
||||
const mapPageUrl = id => {
|
||||
return 'https://www.notion.so/' + id.replace(/-/g, '')
|
||||
}
|
||||
const BlogPost = ({ post, blockMap, tags, prev, next, posts }) => {
|
||||
const ArticleDetail = ({ post, blockMap, tags, prev, next, posts }) => {
|
||||
if (!post) {
|
||||
return <Custom404/>
|
||||
}
|
||||
@@ -39,7 +39,7 @@ const BlogPost = ({ post, blockMap, tags, prev, next, posts }) => {
|
||||
const targetRef = useRef(null)
|
||||
const url = BLOG.link + useRouter().asPath
|
||||
|
||||
return <BaseLayout meta={meta} tags={tags} totalPosts={post} posts={posts}>
|
||||
return <BaseLayout meta={meta} tags={tags} post={post} totalPosts={posts} >
|
||||
{/* 阅读进度条 */}
|
||||
<Progress targetRef={targetRef} />
|
||||
|
||||
@@ -209,4 +209,4 @@ export async function getStaticProps ({ params: { slug } }) {
|
||||
}
|
||||
}
|
||||
|
||||
export default BlogPost
|
||||
export default ArticleDetail
|
||||
|
||||
Reference in New Issue
Block a user