diff options
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/blog/[...slug].astro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 8c8aea9..bd9ac7f 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -1,6 +1,6 @@ --- import Page from '../../layouts/BlogPost.astro'; -import { getEntry, getCollection, render } from 'astro:content'; +import { getCollection, CollectionEntry, getEntry, render } from 'astro:content'; import { formatDate } from "../../util"; export async function getStaticPaths() { @@ -10,6 +10,7 @@ export async function getStaticPaths() { props: { post }, })) } +type Props = CollectionEntry<'blog'>; const { slug } = Astro.params; |
