This commit is contained in:
tangly1024
2023-11-06 21:53:36 +08:00
parent 9e0bffeabf
commit c082210d07
40 changed files with 52 additions and 52 deletions

View File

@@ -23,7 +23,7 @@ export default function BlogArchiveItem({ archiveTitle, archivePosts }) {
</span>{' '}
&nbsp;
<Link passHref href={`${siteConfig('SUB_PATH')}/${post.slug}`}
<Link passHref href={`${siteConfig('SUB_PATH', '')}/${post.slug}`}
className="dark:text-gray-400 dark:hover:text-gray-300 overflow-x-hidden hover:underline cursor-pointer text-gray-600">
{post.title}
</Link>

View File

@@ -8,7 +8,7 @@ const BlogPostCard = ({ post, className }) => {
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 select-none">
<Link href={`${siteConfig('SUB_PATH')}/${post.slug}`} passHref>
<Link href={`${siteConfig('SUB_PATH', '')}/${post.slug}`} passHref>
{post.title}
</Link>
</div>