refactor: clean up SEO and theme configuration

- Remove unused SEO metadata fields like Facebook and site screenshot
- Rename global font configuration from 'font' to 'fontStyle'
- Update theme toggle to use documentElement instead of body for theme restoration
- Simplify HTML metadata and remove redundant meta tags
- Adjust index page to use div instead of time for date display
This commit is contained in:
radishzzz 2025-01-26 23:55:08 +00:00
parent d72ec58837
commit e14c62e1f6
9 changed files with 20 additions and 43 deletions

View file

@ -15,10 +15,10 @@ const postsByYear = await getPostsByYear()
<li>
<a href={`/posts/${post.data.slug || post.slug}/`}>
{post.data.title}
<time class="block lg:inline lg:before:content-['_']">
<div class="block lg:inline lg:before:content-['_']">
{post.data.published.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit' }).replace('/', '-')}
{post.remarkPluginFrontmatter?.minutes && <span> {post.remarkPluginFrontmatter.minutes} min</span>}
</time>
</div>
</a>
</li>
))}
@ -39,10 +39,10 @@ const postsByYear = await getPostsByYear()
{/* Post Title */}
<a class="hover:text-secondary" href={`/posts/${post.data.slug || post.slug}`}>{post.data.title}</a>
{/* Post Date */}
<time class="text-5.6 leading-7 font-date block lg:inline lg:before:content-['_'] opacity-30" aria-hidden="true">
<div class="text-5.6 leading-7 font-date block lg:inline lg:before:content-['_'] opacity-40" aria-hidden="true">
{post.data.published.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit' }).replace('/', '-')}
{post.remarkPluginFrontmatter?.minutes && <span class="ml-2"> {post.remarkPluginFrontmatter.minutes} min</span>}
</time>
</div>
</li>
))}
</ul>