mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 02:31:33 +08:00
feat: use date not publishDate
This commit is contained in:
@ -13,14 +13,10 @@ const post = defineCollection({
|
||||
z.object({
|
||||
title: z.string().max(60),
|
||||
description: z.string(),
|
||||
publishDate: z
|
||||
date: z
|
||||
.string()
|
||||
.or(z.date())
|
||||
.transform((val) => new Date(val)),
|
||||
updatedDate: z
|
||||
.string()
|
||||
.optional()
|
||||
.transform((str) => (str ? new Date(str) : undefined)),
|
||||
coverImage: z
|
||||
.object({
|
||||
src: image(),
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 如何在 Cursor 中使用 DeepSeek-Coder
|
||||
publishDate: 2024-07-25
|
||||
date: 2024-07-25
|
||||
author: KazooTTT
|
||||
type: Post
|
||||
status: Draft
|
||||
|
Reference in New Issue
Block a user