mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
feat: enhance post listing and reading time display
- Implement dynamic post listing grouped by year with improved date formatting - Add reading time display for each post - Update index pages for both default and localized routes - Modify content utility functions to support reading time metadata - Refactor global styles and type definitions to support new features
This commit is contained in:
parent
e9e318e02d
commit
ae39d7b08c
18 changed files with 558 additions and 117 deletions
|
@ -2,9 +2,9 @@
|
|||
import themeConfig from '@/config'
|
||||
|
||||
const { title, subtitle } = themeConfig.site
|
||||
const { titleSpace = 2 } = themeConfig.global
|
||||
const { titleSpace } = themeConfig.global
|
||||
|
||||
const marginClass = {
|
||||
const marginBottom = {
|
||||
1: 'mb-1',
|
||||
2: 'mb-2',
|
||||
3: 'mb-3',
|
||||
|
@ -13,18 +13,13 @@ const marginClass = {
|
|||
---
|
||||
|
||||
<header>
|
||||
<h1
|
||||
class={`${marginClass} mt--5.2 text-12 c-primary font-bold font-title`}
|
||||
aria-label="Title Tag"
|
||||
>
|
||||
<h1 class={`${marginBottom} mt--5.2 text-12 c-primary font-bold font-title`}>
|
||||
<a href="/">
|
||||
{title}
|
||||
</a>
|
||||
</h1>
|
||||
<h2
|
||||
class="text-5.6 c-secondary font-navbar"
|
||||
aria-label="Meta Description"
|
||||
>
|
||||
|
||||
<h2 class="text-5.6 c-secondary font-navbar">
|
||||
{subtitle}
|
||||
</h2>
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue