fix: theme transition error on ios

This commit is contained in:
radishzzz 2025-02-05 17:07:45 +00:00
parent 45385fd84a
commit 93eca1fa7a
6 changed files with 23 additions and 20 deletions

View file

@ -37,7 +37,7 @@ const postsByYear = await getPostsByYear()
// Single Post
<li class="mt-7">
{/* Post Title */}
<a class="hover:text-primary" href={`/posts/${post.data.slug || post.slug}`}>{post.data.title}</a>
<a class="hover:c-primary" href={`/posts/${post.data.slug || post.slug}`}>{post.data.title}</a>
{/* Post Date */}
<div class="mb-9 block text-5.6 leading-11 font-time lg:ml-4 lg:inline">
{post.data.published.toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-')}