aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2026-10-19 02:58:05 -0400
committerAndrew Lee <andrew@alee14.me>2026-10-19 02:58:05 -0400
commit832590ee329a43b74cde0087f874aa68594cd46f (patch)
tree0c081e9b63691e4f26912810bacaf933d8526923 /src/pages/blog
parent7eaa858a500690f036ba23881c38648173905bb6 (diff)
downloadpersonal-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].astro3
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;