diff --git a/src/components/ReadingSection.astro b/src/components/BookReview.astro similarity index 69% rename from src/components/ReadingSection.astro rename to src/components/BookReview.astro index f931c0a..478099a 100644 --- a/src/components/ReadingSection.astro +++ b/src/components/BookReview.astro @@ -2,19 +2,17 @@ import type { CollectionEntry } from "astro:content"; interface Props { - section: CollectionEntry<"reading">; + section: CollectionEntry<"book-review">; } const { section } = Astro.props; const { Content } = await section.render(); --- -
- {section.id.replace(".mdx", "")} -
- -
-
+

{section.id.replace(".mdx", "")}

+
+ +
diff --git a/src/pages/write-up/[slug].astro b/src/pages/write-up/[slug].astro index 7371f84..e62ead6 100644 --- a/src/pages/write-up/[slug].astro +++ b/src/pages/write-up/[slug].astro @@ -5,7 +5,7 @@ import { getCollection } from "astro:content"; import { writeupCategory } from "../../content/config"; export async function getStaticPaths() { - const allWriteups = await getCollection("write-up"); + const allWriteups = await getCollection("ctf-write-up"); const CTFWriteupNames = [ ...new Set(allWriteups.map((writeup) => writeup.id.split("/").at(-2)!)), ];