Upgrades to Astro 5

This commit is contained in:
2024-12-24 09:26:32 +00:00
parent b080e56314
commit 532f75bea0
6 changed files with 2556 additions and 1734 deletions

View File

@@ -23,9 +23,9 @@ export async function GET(context: APIContext) {
site: path.join(site.toString(), 'blog'),
trailingSlash: false,
items: posts.map((post) => ({
link: `/blog/${post.slug}`,
link: `/blog/${post.id}`,
title: post.data.title,
content: mdParser.render(post.body),
content: mdParser.render(post.body ?? ''),
pubDate: post.data.pubDate,
description: post.data.description,
author: 'Joe Carstairs',