日期跳转归档
This commit is contained in:
tangly
2021-12-05 13:38:49 +08:00
parent 3a040dd794
commit 490f05b448
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ const BlogPostCard = ({ post, tags }) => {
</span>
</Link>
<span className='mx-1 dark:text-gray-400'>|</span>
<Link href='/archive' passHref>
<Link href={`/archive#${post?.date?.start_date?.substr(0, 7)}`} passHref>
<span className='mt-2 mx-2 text-gray-400 hover:text-blue-400 hover:underline cursor-pointer dark:text-gray-300 text-sm leading-4'>{post.date.start_date}</span>
</Link>
</div>