gitbook-fix

This commit is contained in:
tangly1024.com
2023-07-18 14:50:16 +08:00
parent 4359adcb73
commit e2235aa723
3 changed files with 8 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ const BlogPostCard = ({ post, className }) => {
const currentSelected = router.asPath.split('?')[0] === '/' + post.slug
return (
<div key={post.id} className={`${className} py-1 cursor-pointer px-2 hover:bg-gray-50 rounded-md dark:hover:bg-gray-600 ${currentSelected ? 'bg-green-50 text-green-500' : ''}`}>
<div className="flex flex-col w-full">
<div className="flex flex-col w-full select-none">
<Link href={`${BLOG.SUB_PATH}/${post.slug}`} passHref>
{post.title}
</Link>