mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
docs: update theme guide
This commit is contained in:
parent
847629ca46
commit
fa0c7db306
8 changed files with 66 additions and 66 deletions
|
@ -33,7 +33,7 @@ function formatDate(date: Date, format: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYY
|
|||
case 'DD-MM-YYYY':
|
||||
return date.toLocaleDateString('en-GB', options).replace(/\//g, '-')
|
||||
|
||||
// US month text format: Mar 13 2025
|
||||
// US month text format: Apr 13 2025
|
||||
case 'MONTH DAY YYYY':
|
||||
return date.toLocaleDateString('en-US', {
|
||||
year: 'numeric',
|
||||
|
@ -41,7 +41,7 @@ function formatDate(date: Date, format: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYY
|
|||
day: 'numeric',
|
||||
}).replace(',', '')
|
||||
|
||||
// British month text format: 13 Mar 2025
|
||||
// British month text format: 13 Apr 2025
|
||||
case 'DAY MONTH YYYY':
|
||||
return date.toLocaleDateString('en-GB', {
|
||||
year: 'numeric',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue