summaryrefslogtreecommitdiff
path: root/website/src/pages/links
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 19:21:59 +0100
commitca8e6824eaa711105f4092365792720c9dde026b (patch)
tree2b6493941352d11b799ee63d3f1311c13de649b8 /website/src/pages/links
parenta0f25057283a397f006127b6f582d190d2c4294e (diff)
remove Astro website
Diffstat (limited to 'website/src/pages/links')
-rw-r--r--website/src/pages/links/rss.xml.ts33
1 files changed, 0 insertions, 33 deletions
diff --git a/website/src/pages/links/rss.xml.ts b/website/src/pages/links/rss.xml.ts
deleted file mode 100644
index 3f9e9a0..0000000
--- a/website/src/pages/links/rss.xml.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import path from 'node:path';
-import rss from '@astrojs/rss';
-import type { APIContext } from 'astro';
-import LINKS from '../../data/links.ts';
-import MarkdownIt from 'markdown-it';
-
-const mdParser = new MarkdownIt({
- html: true
-});
-
-export async function GET(context: APIContext) {
- // `site` is guaranteed to exist because we define it in our Astro config
- const site = context.site!;
-
- return rss({
- title: 'Joe Carstairs’ links',
- description: 'An assortment of links I’m accumulating.',
- customData: `
- <image>/images/headshot.webp</image>
- <language>en-GB</language>
- `,
- site: path.join(site.toString(), 'links'),
- trailingSlash: false,
- items: LINKS.map((link) => ({
- link: link.href,
- title: link.title,
- content: mdParser.render(link.description),
- pubDate: new Date(link.isoDateAdded),
- description: mdParser.render(link.description),
- author: 'Joe Carstairs',
- })),
- })
-}