feat: (test) og:image support

This commit is contained in:
grassblock 2025-05-14 11:30:54 +08:00
parent 7ff2d1fd6c
commit 223719322f
8 changed files with 232 additions and 9 deletions

View file

@ -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(),
});