From b63677e32232f09689f7ac88a5d9e42b016cb8eb Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sun, 9 Feb 2025 11:21:31 +0100 Subject: [PATCH] fix(website): fix news sidebar --- website/src/content/config.ts | 14 ++++++++++---- .../src/content/docs/news/2025-01-30-2025-start.md | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/website/src/content/config.ts b/website/src/content/config.ts index e9f77cd1240..d3c325bb79b 100644 --- a/website/src/content/config.ts +++ b/website/src/content/config.ts @@ -1,7 +1,13 @@ -import { defineCollection } from "astro:content"; -import { docsSchema } from "@astrojs/starlight/schema"; -import { blogSchema } from "starlight-blog/schema"; +import { defineCollection } from 'astro:content'; +import { docsLoader } from '@astrojs/starlight/loaders'; +import { docsSchema } from '@astrojs/starlight/schema'; +import { blogSchema } from 'starlight-blog/schema' export const collections = { - docs: defineCollection({ schema: docsSchema({ extend: (context) => blogSchema(context) }) }) + docs: defineCollection({ + loader: docsLoader(), + schema: docsSchema({ + extend: (context) => blogSchema(context) + }) + }), }; diff --git a/website/src/content/docs/news/2025-01-30-2025-start.md b/website/src/content/docs/news/2025-01-30-2025-start.md index 30fadb25843..3d4b2bf022c 100644 --- a/website/src/content/docs/news/2025-01-30-2025-start.md +++ b/website/src/content/docs/news/2025-01-30-2025-start.md @@ -1,4 +1,5 @@ --- +slug: "news/2025-start" title: "2025 project goals" authors: [privatepuffin] date: 2025-01-30