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