diff options
| author | Joe Carstairs <me@joeac.net> | 2026-04-25 13:07:25 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-04-25 13:07:25 +0100 |
| commit | 6470d7f8bd8220d1067cb404386a5d3055031c3b (patch) | |
| tree | d72ba37567dabc61569df31cce570fad81cadcde /website/src | |
| parent | 5a56c572af762efb56780b48cf003bb0fbcc23b9 (diff) | |
adds microlog content collection to website
Diffstat (limited to 'website/src')
| -rw-r--r-- | website/src/content.config.ts | 11 | ||||
| l--------- | website/src/content/microlog | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/website/src/content.config.ts b/website/src/content.config.ts index 9514c9c..815e9e0 100644 --- a/website/src/content.config.ts +++ b/website/src/content.config.ts @@ -2,6 +2,7 @@ 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({ @@ -49,4 +50,12 @@ const blog = defineCollection({ }), }); -export const collections = { blog }; +const microlog = defineCollection({ + loader: glob({ + pattern: "**/*.gmi", + base: "./src/content/microlog", + generateId: ({ entry }) => entry.replace(/\.gmi$/, ""), + }), +}); + +export const collections = { blog, microlog }; diff --git a/website/src/content/microlog b/website/src/content/microlog new file mode 120000 index 0000000..21d435d --- /dev/null +++ b/website/src/content/microlog @@ -0,0 +1 @@ +../../../common/microlog/
\ No newline at end of file |
