fix(website): fix news sidebar
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
import { defineCollection } from "astro:content";
|
import { defineCollection } from 'astro:content';
|
||||||
import { docsSchema } from "@astrojs/starlight/schema";
|
import { docsLoader } from '@astrojs/starlight/loaders';
|
||||||
import { blogSchema } from "starlight-blog/schema";
|
import { docsSchema } from '@astrojs/starlight/schema';
|
||||||
|
import { blogSchema } from 'starlight-blog/schema'
|
||||||
|
|
||||||
export const collections = {
|
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"
|
title: "2025 project goals"
|
||||||
authors: [privatepuffin]
|
authors: [privatepuffin]
|
||||||
date: 2025-01-30
|
date: 2025-01-30
|
||||||
|
|||||||
Reference in New Issue
Block a user