diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 1a20332..7d23fc7 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -19,8 +19,7 @@ export async function getStaticPaths() { } const { entry } = Astro.props; -const { Content } = await entry.render(); -const headings = await entry.render().then(rendered => rendered.headings); +const { Content, headings } = await entry.render(); const noscript = siteConfig.noClientJavaScript const slug = Astro.params.slug;