diff options
| author | Yuqian Yang <crupest@crupest.life> | 2026-01-23 23:16:45 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2026-01-24 16:38:33 +0800 |
| commit | 6d39cee75e7ef7c5e06d1a745a32224e11d68c37 (patch) | |
| tree | 0f2646b569e8af6a2f464eb2755553eda0fe593b /www-2/src/content.config.ts | |
| parent | 78e3e234877cb10ca1088df31e831b36fa4a12c0 (diff) | |
| download | crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.tar.gz crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.tar.bz2 crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.zip | |
HALF WORK!astro
Diffstat (limited to 'www-2/src/content.config.ts')
| -rw-r--r-- | www-2/src/content.config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www-2/src/content.config.ts b/www-2/src/content.config.ts index f309aa5..f8a3aa1 100644 --- a/www-2/src/content.config.ts +++ b/www-2/src/content.config.ts @@ -2,7 +2,7 @@ import { defineCollection } from "astro:content"; import { glob } from "astro/loaders"; import { z } from "astro/zod"; -const blogs = defineCollection({ +const articles = defineCollection({ loader: glob({ pattern: "**/*.md", base: "./content" }), schema: z.object({ title: z.string(), @@ -14,4 +14,4 @@ const blogs = defineCollection({ }), }); -export const collections = { blogs }; +export const collections = { articles }; |
