diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-18 19:21:59 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-18 19:21:59 +0100 |
| commit | ca8e6824eaa711105f4092365792720c9dde026b (patch) | |
| tree | 2b6493941352d11b799ee63d3f1311c13de649b8 /website/src/content.config.ts | |
| parent | a0f25057283a397f006127b6f582d190d2c4294e (diff) | |
remove Astro website
Diffstat (limited to 'website/src/content.config.ts')
| -rw-r--r-- | website/src/content.config.ts | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/website/src/content.config.ts b/website/src/content.config.ts deleted file mode 100644 index 815e9e0..0000000 --- a/website/src/content.config.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { defineCollection } from "astro:content"; -import { z } from "astro/zod"; - -import { extendedGlob } from "./loaders/extended-glob"; -import { glob } from "astro/loaders"; - -const blog = defineCollection({ - loader: extendedGlob({ - pattern: "**/*.(md|mdx|gmi|html)", - base: "./src/content/blog", - postprocessSlug: (slug: string) => slug.replaceAll(/^capsule-longlog\//g, ""), - ignore: [ - "capsule-longlog/index.gmi", - /* Some blog posts were ported to gemtext. Don't port them back again: - * that would lead to duplicates! The originals are likely to be better - * anyway, as MD/MDX are richer languages. */ - "**/2024-01-14.gmi", - "**/2024-01-29.gmi", - "**/2024-03-30.gmi", - "**/2024-04-10.gmi", - "**/2024-04-11.gmi", - "**/2024-04-14.gmi", - "**/2024-05-02.gmi", - "**/2024-06-13.gmi", - "**/2024-07-08.gmi", - "**/2024-07-16.gmi", - "**/2024-12-17.gmi", - "**/2025-01-19.gmi", - "**/2025-01-24.gmi", - "**/2025-01-28.gmi", - "**/2025-05-02.gmi", - "**/2025-05-04.gmi", - "**/2025-06-23.gmi", - "**/2025-07-03.gmi", - "**/2025-09-18.gmi", - "**/2025-09-24.gmi", - "**/2025-10-05.gmi", - "**/2025-10-09.gmi", - "**/2025-12-11.gmi", - "**/2026-02-16.gmi", - "**/2026-03-04.gmi", - ], - }), - schema: z.object({ - title: z.string(), - hidden: z.optional(z.boolean()), - description: z.optional(z.string()), - pubDate: z.optional(z.date()), - updatedDate: z.optional(z.date()), - }), -}); - -const microlog = defineCollection({ - loader: glob({ - pattern: "**/*.gmi", - base: "./src/content/microlog", - generateId: ({ entry }) => entry.replace(/\.gmi$/, ""), - }), -}); - -export const collections = { blog, microlog }; |
