Maybe clean up

This commit is contained in:
Andras Schmelczer 2026-05-25 09:49:09 +01:00
parent 2165ed0c33
commit db8d4597df
40 changed files with 404 additions and 332 deletions

View file

@ -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}>