summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+joeacarstairs@users.noreply.github.com>2025-01-06 21:49:17 +0000
committerGitHub <noreply@github.com>2025-01-06 21:49:17 +0000
commit9fb9e47e92049b72cdc7cbaa3e9d43ed1aacd095 (patch)
treea2069f3d255f8dddc0102afbc8283d79101045b7 /src/pages
parentf4875fd98fd502c19ca093e4bfeed386d174ed86 (diff)
parent7d377d5794e92d0d06d3db19d398bb6f81802b5f (diff)
Merge pull request #109 from joeacarstairs/staging
Update
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}>