diff options
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/[locale]/news/[...slug].astro | 4 |
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}> |
