From a8efefc12f21fc3b1fe3c32898cd50d0067b93c6 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 24 Dec 2024 08:42:19 +0000 Subject: Upgrades to Astro 5 --- src/pages/[locale]/news/[...slug].astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages') diff --git a/src/pages/[locale]/news/[...slug].astro b/src/pages/[locale]/news/[...slug].astro index a24e65a..4585cf2 100644 --- a/src/pages/[locale]/news/[...slug].astro +++ b/src/pages/[locale]/news/[...slug].astro @@ -1,6 +1,6 @@ --- import Article from '$layouts/Article.astro'; -import { getCollection } from 'astro:content'; +import { getCollection, render } from 'astro:content'; import { getLocale, getSlug } from '$lib/newsUtils'; export async function getStaticPaths() { @@ -14,7 +14,7 @@ export async function getStaticPaths() { } const { entry } = Astro.props; -const { Content } = await entry.render(); +const { Content } = await render(entry); ---
-- cgit v1.2.3