Scaffold Astro 5 project with static output and i18n-ready content collections

This commit is contained in:
hsiegeln
2026-04-24 16:30:21 +02:00
parent 75f20d5367
commit b9b0dcb6ec
7 changed files with 13115 additions and 0 deletions

23
src/content/config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { defineCollection, z } from 'astro:content';
// Scaffold only — no entries yet. Added now so future blog/docs work is pure content, not refactor.
const blog = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
publishedAt: z.date(),
draft: z.boolean().default(true),
}),
});
const docs = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
order: z.number().default(99),
}),
});
export const collections = { blog, docs };

0
src/content/en/.gitkeep Normal file
View File