fix: front-matter prop change

This commit is contained in:
saicaca
2023-10-21 10:52:01 +08:00
parent b9489a51b3
commit 9b68fd1b86
10 changed files with 18 additions and 31 deletions

View File

@@ -5,10 +5,7 @@ const blogCollection = defineCollection({
title: z.string(),
published: z.date(),
description: z.string().optional(),
cover: z.object({
url: z.string(),
alt: z.string(),
}),
image: z.string().optional(),
tags: z.array(z.string()).optional(),
})
})

View File

@@ -2,9 +2,7 @@
title: 'Cover Image Example'
published: 2023-09-01
description: 'How to set a cover image using the cover attribute.'
cover:
url: 'https://saicaca.github.io/vivia-preview/assets/79905307_p0.jpg'
alt:
image: 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/208fc754-890d-4adb-9753-2c963332675d/width=2048/01651-1456859105-(colour_1.5),girl,_Blue,yellow,green,cyan,purple,red,pink,_best,8k,UHD,masterpiece,male%20focus,%201boy,gloves,%20ponytail,%20long%20hair,.jpeg'
tags: ["Fuwari", "Blogging", "Customization"]
---

View File

@@ -2,9 +2,7 @@
title: Markdown Example
published: 2023-10-01
description: A simple example of a Markdown blog post.
cover:
url:
alt:
image:
tags: [Markdown, Blogging, Demo]
categories: [Example]
---

View File

@@ -2,9 +2,7 @@
title: Include Video in the Posts
published: 2022-08-01
description: This post demonstrates how to include embedded video in a blog post.
cover:
url:
alt:
image:
tags: [Example, Video]
categories: []
---