diff options
| author | Andrew Lee <andrew@alee14.me> | 2026-10-19 02:58:05 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2026-10-19 02:58:05 -0400 |
| commit | 832590ee329a43b74cde0087f874aa68594cd46f (patch) | |
| tree | 0c081e9b63691e4f26912810bacaf933d8526923 /src/pages/blog | |
| parent | 7eaa858a500690f036ba23881c38648173905bb6 (diff) | |
| download | personal-website-832590ee329a43b74cde0087f874aa68594cd46f.tar.gz personal-website-832590ee329a43b74cde0087f874aa68594cd46f.tar.bz2 personal-website-832590ee329a43b74cde0087f874aa68594cd46f.zip | |
notice now uses regular JS; TS type on blogtesting
Diffstat (limited to 'src/pages/blog')
| -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; |
