Make markdown headings optional to Main layout

This commit is contained in:
2024-03-15 11:40:21 -05:00
parent a6b2a00ee6
commit 36a68c8993
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import TableOfContents from "@components/TableOfContents.astro";
import type { MarkdownHeading } from "astro";
type Props = Pick<CollectionEntry<"handbook">["data"], "title" | "description"> & {
headings: MarkdownHeading[];
headings?: MarkdownHeading[];
};
const { title, description, headings } = Astro.props;

View File

@@ -10,6 +10,6 @@ import Main from '@layouts/Main.astro';
// (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
// );
---
<Main title="test" description='test' headings={[]}>
<Main title="test" description='test'>
Nothing here yet.
</Main>