Add TOC and Layout components; update pages

This commit is contained in:
mido
2026-04-15 11:23:10 -05:00
parent 57f672386a
commit 56ea450e7b
6 changed files with 101 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
---
import { getCollection, render } from "astro:content";
import { collectionNames, isSiteCollection } from "../../config/content";
import Layout from "../../layouts/Layout.astro";
export async function getStaticPaths() {
const paths = [];
@@ -32,4 +33,6 @@ const { entry } = Astro.props;
const { Content } = await render(entry);
---
<Content />
<Layout title={entry.data.title}>
<Content />
</Layout>