From d13a50729b3f9d4df07ce1b3162894d69d03ac12 Mon Sep 17 00:00:00 2001
From: Dan Matthew <111794+danielmatthew@users.noreply.github.com>
Date: Wed, 21 Oct 2026 10:12:53 +0100
Subject: [PATCH] fix: fix bugs
---
.../posts/2013-03-16-thoughts-on-procrastination.md | 1 -
src/pages/articles.astro | 2 +-
src/pages/feed.json.js | 4 ++--
src/pages/feed.xml.js | 7 +++----
src/pages/work.astro | 4 ++--
5 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/content/posts/2013-03-16-thoughts-on-procrastination.md b/src/content/posts/2013-03-16-thoughts-on-procrastination.md
index a6f39f2..72a5432 100755
--- a/src/content/posts/2013-03-16-thoughts-on-procrastination.md
+++ b/src/content/posts/2013-03-16-thoughts-on-procrastination.md
@@ -1,7 +1,6 @@
---
title: On Procrastination
publishedDate: 2013-03-16
-draft: true
published: false
---
diff --git a/src/pages/articles.astro b/src/pages/articles.astro
index 2abac73..8572826 100644
--- a/src/pages/articles.astro
+++ b/src/pages/articles.astro
@@ -19,7 +19,7 @@ const notesWithDate =
{
notesWithDate.map((note) => (
- { note.data.title }
+ { note.data.title }
))
diff --git a/src/pages/feed.json.js b/src/pages/feed.json.js
index e2a75b4..1c4b01e 100644
--- a/src/pages/feed.json.js
+++ b/src/pages/feed.json.js
@@ -22,8 +22,8 @@ export async function GET(context) {
},
language: 'en-gb',
items: publishedPosts.map((post) => ({
- id: `${siteUrl}/notes/${post.slug}/`,
- url: `${siteUrl}/notes/${post.slug}/`,
+ id: `${siteUrl}/notes/${post.id}/`,
+ url: `${siteUrl}/notes/${post.id}/`,
title: post.data.title,
date_published: post.data.publishedDate.toISOString(),
...(post.data.updatedDate && { date_modified: post.data.updatedDate.toISOString() }),
diff --git a/src/pages/feed.xml.js b/src/pages/feed.xml.js
index 3533f0f..fc43117 100644
--- a/src/pages/feed.xml.js
+++ b/src/pages/feed.xml.js
@@ -20,12 +20,11 @@ export async function GET(context) {
items: publishedPosts.map((post) => ({
title: post.data.title,
pubDate: post.data.publishedDate,
- link: `/notes/${post.slug}/`,
+ link: `/notes/${post.id}/`,
description: post.data.description || '',
content: sanitizeHtml(parser.render(post.body), {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']),
- }),
- ...post.data,
- })),
+ }),
+ })),
});
}
diff --git a/src/pages/work.astro b/src/pages/work.astro
index 285e8a5..daa0143 100644
--- a/src/pages/work.astro
+++ b/src/pages/work.astro
@@ -1,5 +1,5 @@
---
-import { CollectionEntry, getCollection } from "astro:content";
+import { getCollection } from "astro:content";
import BaseLayout from "../layouts/BaseLayout.astro";
import Hero from "../components/Hero.astro";
@@ -17,7 +17,7 @@ const projects = await getCollection("work", ({ data }) => {