From 66f280b4095a9aabd9e40b542606850fbd594d07 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 17 Jul 2025 10:06:11 +0200 Subject: [PATCH 1/2] Update sprints --- src/components/SprintCard.astro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/SprintCard.astro b/src/components/SprintCard.astro index e3b90404b..f677ce02e 100644 --- a/src/components/SprintCard.astro +++ b/src/components/SprintCard.astro @@ -11,6 +11,11 @@ if (!sprint) { throw new Error(`Sprint entry "${slug}" not found`); } +if (sprint.body && /^#+\s/m.test(sprint.body)) { + throw new Error(`No headlines allowed in description. [${sprint.id}]`); +} + + const { data, body } = sprint; // From 5960a203473828ee9c6c9e31f109a7fe70747591 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 17 Jul 2025 10:09:23 +0200 Subject: [PATCH 2/2] Sort sprints --- src/pages/sprints.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/sprints.astro b/src/pages/sprints.astro index c17486b3d..87f8730f2 100644 --- a/src/pages/sprints.astro +++ b/src/pages/sprints.astro @@ -16,9 +16,9 @@ if (!entry) { throw new Error('Could not find page entry.'); } -const sprints = await getCollection("sprints", ({ data }) => { +const sprints = (await getCollection("sprints", ({ data }) => { return import.meta.env.MODE === "production" ? data.draft !== true : true; -}); +})).sort((a, b) => a.id.localeCompare(b.id)); ---