mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
slug 调整兼容已有主题
This commit is contained in:
@@ -7,8 +7,7 @@ import CONFIG from '../config'
|
||||
|
||||
const BlogPostCard = ({ post, className }) => {
|
||||
const router = useRouter()
|
||||
const currentSelected = router.asPath.split('?')[0] === '/' + post.slug
|
||||
|
||||
const currentSelected = router.asPath.split('?')[0] === post?.href
|
||||
return (
|
||||
<Link href={post?.href} passHref>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user