feat: update font configuration

- Add new font variations for EarlySummer and subset fonts
- Update uno.config.ts to modify font family configurations
- Introduce new font files for navbar, time, and subset usage
- Remove preload of external font CDN and add local font CSS import
- Adjust scrollbar initialization to handle native scrollbars
- Modify index page date display styles
This commit is contained in:
radishzzz 2025-01-27 04:50:12 +00:00
parent e14c62e1f6
commit 0241091a8f
137 changed files with 180 additions and 147 deletions

View file

@ -30,7 +30,7 @@ const postsByYear = await getPostsByYear()
// Year Group
<section class="mt-8">
{/* Year */}
<time class="text-8 font-date">{year}</time>
<time class="text-8 font-time">{year}</time>
{/* Posts List */}
<ul>
{posts.map(post => (
@ -39,7 +39,7 @@ const postsByYear = await getPostsByYear()
{/* Post Title */}
<a class="hover:text-secondary" href={`/posts/${post.data.slug || post.slug}`}>{post.data.title}</a>
{/* Post Date */}
<div class="text-5.6 leading-7 font-date block lg:inline lg:before:content-['_'] opacity-40" aria-hidden="true">
<div class="text-5.6 leading-7 font-date block lg:inline lg:before:content-['_']" 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>}
</div>