add: blog

blog post
This commit is contained in:
webfussel 2025-07-11 18:01:06 +02:00
parent 6c68f3afb1
commit e46242578f
4 changed files with 6 additions and 8 deletions

View file

@ -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 => {