mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +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
10
src/types/global.d.ts
vendored
10
src/types/global.d.ts
vendored
|
@ -4,11 +4,15 @@ declare global {
|
|||
namespace astroHTML.JSX {
|
||||
interface HTMLAttributes extends AttributifyAttributes {}
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Document {
|
||||
startViewTransition: (callback: () => void) => void
|
||||
startViewTransition: (updateCallback: () => void) => ViewTransition
|
||||
}
|
||||
|
||||
interface ViewTransition {
|
||||
finished: Promise<void>
|
||||
ready: Promise<void>
|
||||
updateCallbackDone: Promise<void>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue