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

@ -47,7 +47,7 @@ const postsByYear = await getPostsByYear(lang)
{/* Post Title */}
<a href={`/${lang}/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">
<time class="text-5.6 leading-7 font-time block lg:inline lg:before:content-['_'] opacity-30" 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>