diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-09-01 14:48:45 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-09-01 14:48:45 +0300 |
| commit | 8a6d697308162874a236c84aac0b0f8c7ac01f83 (patch) | |
| tree | ed7dc7e8c6f50d66bde721fae78576aede929f66 /website/src/content.config.ts | |
| parent | b54a78aa510b87d1e3b56c619b72eaeb59e4a2a1 (diff) | |
refactor: separate website presentation from runtime
Diffstat (limited to 'website/src/content.config.ts')
| -rw-r--r-- | website/src/content.config.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/website/src/content.config.ts b/website/src/content.config.ts deleted file mode 100644 index 88291349..00000000 --- a/website/src/content.config.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { defineCollection, z } from 'astro:content'; -import { glob } from 'astro/loaders'; -import { docsLoader } from '@astrojs/starlight/loaders'; -import { docsSchema } from '@astrojs/starlight/schema'; -import { docsPath } from './docs-path'; - -export const collections = { - docs: defineCollection({ loader: docsLoader({ generateId: docsPath }), schema: docsSchema() }), - blog: defineCollection({ - loader: glob({ pattern: '*.md', base: './src/content/blog' }), - schema: z.object({ - title: z.string(), - description: z.string(), - date: z.coerce.date(), - draft: z.boolean().default(false), - /* description is always used for meta and OG; set false when it should - not also print as a subtitle under the title */ - lede: z.boolean().default(true), - ogImage: z.string().optional(), - }), - }), -}; |
