Initial commit: Astro blog scaffold with CI/CD
Deploy / build (push) Waiting to run

This commit is contained in:
hoelee committed 2026-09-06 04:18:16 +08:00
commit 8372d5e659
15 files changed
+5976

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import { defineCollection, z } from 'astro:content';
const posts = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
category: z.enum([
'engineering',
'devops',
'ai',
'web3',
'tutorials',
'case-studies',
'notes',
]),
tags: z.array(z.string()).default([]),
draft: z.boolean().default(false),
lang: z.enum(['en', 'zh']).default('en'),
ogImage: z.string().optional(),
}),
});
export const collections = { posts };