feat: (test) og:image support
This commit is contained in:
parent
7ff2d1fd6c
commit
223719322f
8 changed files with 232 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
|||
import { z } from 'astro:content';
|
||||
|
||||
export const posts = z.object({
|
||||
export const posts = ({ image }:{image: ()=> z.ZodAny}) => z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.coerce.date(),
|
||||
updatedDate: z.coerce.date().optional(),
|
||||
heroImage: z.string().optional()
|
||||
cover: image().optional(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue