mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
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:
parent
d72ec58837
commit
e14c62e1f6
9 changed files with 20 additions and 43 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue