summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-12-24 08:42:19 +0000
committerJoe Carstairs <me@joeac.net>2024-12-24 09:00:24 +0000
commita8efefc12f21fc3b1fe3c32898cd50d0067b93c6 (patch)
treee2224a7dbd15c5f7c4693ca438e7d83027856a69 /src/pages
parent5515d5b2cce3cc43996850ff516fd1838f8fe8eb (diff)
Upgrades to Astro 5
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/[locale]/news/[...slug].astro4
1 files changed, 2 insertions, 2 deletions
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);
---
<Article title={entry.data.title}>