feat: add a friend link (blogroll) shortcode

This commit is contained in:
grassblock 2025-05-16 21:34:02 +08:00
parent 6a2d5fd912
commit de4de10703
6 changed files with 54 additions and 13 deletions

View file

@ -1,6 +1,6 @@
import { z } from 'astro:content';
export const posts = ({ image }:{image: ()=> z.ZodAny}) => z.object({
export const posts = ({ image }) => z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),