fix(website): fix news sidebar

This commit is contained in:
Kjeld Schouten
2025-02-09 11:21:31 +01:00
parent 0ee9fab111
commit b63677e322
2 changed files with 11 additions and 4 deletions
+10 -4
View File
@@ -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)
})
}),
};
@@ -1,4 +1,5 @@
---
slug: "news/2025-start"
title: "2025 project goals"
authors: [privatepuffin]
date: 2025-01-30