add: blog
blog post
This commit is contained in:
parent
6c68f3afb1
commit
e46242578f
4 changed files with 6 additions and 8 deletions
|
@ -19,7 +19,7 @@ const makeItem = (article: BlogCollectionItem, base: string) => `
|
|||
|
||||
const simpleDate = (date: Date) => {
|
||||
date.setDate(date.getDate() + 1)
|
||||
return `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, '0')}-${date.getDate()}`
|
||||
return `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, '0')}-${`${date.getDate()}`.padStart(2, '0')}`
|
||||
}
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue