mirror of
https://github.com/Xevion/utsa-handbook.git
synced 2025-12-09 16:09:03 -06:00
Make markdown headings optional to Main layout
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user