mirror of
https://github.com/Xevion/utsa-handbook.git
synced 2025-12-14 02:13:35 -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";
|
import type { MarkdownHeading } from "astro";
|
||||||
|
|
||||||
type Props = Pick<CollectionEntry<"handbook">["data"], "title" | "description"> & {
|
type Props = Pick<CollectionEntry<"handbook">["data"], "title" | "description"> & {
|
||||||
headings: MarkdownHeading[];
|
headings?: MarkdownHeading[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const { title, description, headings } = Astro.props;
|
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()
|
// (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
|
||||||
// );
|
// );
|
||||||
---
|
---
|
||||||
<Main title="test" description='test' headings={[]}>
|
<Main title="test" description='test'>
|
||||||
Nothing here yet.
|
Nothing here yet.
|
||||||
</Main>
|
</Main>
|
||||||
Reference in New Issue
Block a user