diff --git a/src/pages/supercomputing/[...slug].astro b/src/pages/supercomputing/[...slug].astro new file mode 100644 index 0000000..2d9186e --- /dev/null +++ b/src/pages/supercomputing/[...slug].astro @@ -0,0 +1,26 @@ +--- +const { post } = Astro.props; + +import { CollectionEntry, getCollection } from "astro:content"; +export interface Props { + post: CollectionEntry<"supercomputing">; +} + +export async function getStaticPaths() { + const posts = await getCollection( + "supercomputing", + ({ data }) => !data.draft + ); + const postResult = posts.map((post) => ({ + params: { slug: post.slug }, + props: { post }, + })); + return [...postResult]; +} + +const { Content } = await post.render(); +--- + +
+ +
diff --git a/src/pages/supercomputing/index.astro b/src/pages/supercomputing/index.astro new file mode 100644 index 0000000..b14df64 --- /dev/null +++ b/src/pages/supercomputing/index.astro @@ -0,0 +1 @@ +Hi