From 370944f443cb997ef71dda0c8ef6f4e92bea87d7 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 15 Apr 2026 02:05:41 +0200 Subject: feat: new-release notice and colocate changelog under domain --- apps/web/content-collections.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/web/content-collections.ts') diff --git a/apps/web/content-collections.ts b/apps/web/content-collections.ts index bde2ba94..0fdd7234 100644 --- a/apps/web/content-collections.ts +++ b/apps/web/content-collections.ts @@ -3,7 +3,7 @@ import { z } from "zod"; const changelog = defineCollection({ name: "changelog", - directory: "content/changelog", + directory: "src/lib/changelog/entries", include: "*.md", schema: z.object({ content: z.string(), @@ -12,6 +12,7 @@ const changelog = defineCollection({ published: z.boolean().default(true), title: z.string(), description: z.string().optional(), + summary: z.string().optional(), changes: z.array( z.object({ type: z.string(), @@ -25,7 +26,8 @@ const changelog = defineCollection({ const sorted = [...publishedDocs].sort((a, b) => b.version.localeCompare(a.version, undefined, { numeric: true }), ); - const isLatest = doc.published !== false && sorted[0]?.version === doc.version; + const isLatest = + doc.published !== false && sorted[0]?.version === doc.version; return { ...doc, isLatest }; }, }); -- cgit v1.3.1