add website config.

This commit is contained in:
2023-04-03 13:31:00 +08:00
parent 70a4b67b58
commit b6ae429052
6 changed files with 286 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ export function getTagColor(
}[tag]
}
// 2023-04-03T02:43:28.673156Z
export function parseTime(utc: Date | string, format = "YYYY年M月D日") {
const time = useDateFormat(utc, format, { locales: "zh-CN" })
return time.value