Skip to content

Commit f4c4161

Browse files
committed
修复图片路径问题
1 parent 825c6d9 commit f4c4161

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Badge.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { IconName } from '@/custom/pure/libs/icons'
55
66
interface Props {
77
item: {
8-
key: string | { icon?: IconName; image?: string }
8+
key: string | { icon?: IconName; image?: any }
99
value?: string
1010
color?: string
1111
}

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const blog = defineCollection({
4646
z.string(),
4747
z.object({
4848
icon: z.enum(Object.keys(Icons) as [string, ...string[]]).optional(),
49-
image: z.string().optional()
49+
image: image().optional()
5050
})
5151
]),
5252
value: z.string().optional(),

0 commit comments

Comments
 (0)