Initial commit: Interactives site
Astro-based site with 40+ interactive math games, puzzles, and explorations. Includes admin dashboard, todo system, blog, theme/subcategory navigation, and embed pages for iframe embedding. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
c5926b4213
265 changed files with 51899 additions and 0 deletions
22
src/content.config.ts
Normal file
22
src/content.config.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { defineCollection } from "astro:content";
|
||||
import { glob } from "astro/loaders";
|
||||
import { z } from "astro/zod";
|
||||
|
||||
const blog = defineCollection({
|
||||
loader: glob({ pattern: "**/*.{md,mdx}", base: "src/content/blog" }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
tagline: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
author: z.string().optional(),
|
||||
date: z.coerce.date().optional(),
|
||||
published: z.coerce.date().optional(),
|
||||
tags: z.array(z.string()).default([]),
|
||||
coverImage: z.string().optional(),
|
||||
image: z.string().optional(),
|
||||
featured: z.boolean().optional(),
|
||||
latest: z.boolean().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog };
|
||||
Loading…
Add table
Add a link
Reference in a new issue