mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
feat: add date formatting component and configuration options
- Add DateFormat and PostTime components, supporting multiple date display formats - Add dateFormat option in theme configuration, allowing customization of date display styles - Refactor time display logic in article list and article detail pages - Update configuration type definitions to support new date format options
This commit is contained in:
parent
4b21e6ee39
commit
8ac9b865f5
7 changed files with 184 additions and 30 deletions
1
src/types/index.d.ts
vendored
1
src/types/index.d.ts
vendored
|
@ -33,6 +33,7 @@ export interface ThemeConfig {
|
|||
locale: typeof langPath[number]
|
||||
moreLocale: typeof langPath[number][]
|
||||
fontStyle: 'sans' | 'serif'
|
||||
dateFormat: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'MONTH DAY YYYY' | 'DAY MONTH YYYY'
|
||||
titleSpace: 1 | 2 | 3
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue