Maybe clean up
This commit is contained in:
parent
2165ed0c33
commit
db8d4597df
40 changed files with 404 additions and 332 deletions
|
|
@ -2,9 +2,12 @@
|
|||
import type { ComponentProps } from 'astro/types';
|
||||
import Base from './Base.astro';
|
||||
|
||||
type Props = ComponentProps<typeof Base>;
|
||||
type Props = Omit<ComponentProps<typeof Base>, 'title'> & { title: string };
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
if (!title) {
|
||||
throw new Error('Page layout requires a `title` prop.');
|
||||
}
|
||||
---
|
||||
|
||||
<Base {...Astro.props}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue