mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: allow to hide the header
This commit is contained in:
@@ -6,13 +6,24 @@ import BaseLayout from './BaseLayout.astro';
|
||||
export interface Props {
|
||||
backLink?: string;
|
||||
class?: string;
|
||||
footer?: boolean;
|
||||
gap?: boolean;
|
||||
grid?: 'fullsize' | 'wide' | 'narrow';
|
||||
header?: boolean;
|
||||
innerGrid?: boolean;
|
||||
title: string;
|
||||
}
|
||||
|
||||
const { backLink, class: className, gap = true, grid = 'narrow', innerGrid, title } = Astro.props;
|
||||
const {
|
||||
backLink,
|
||||
class: className,
|
||||
footer = true,
|
||||
gap = true,
|
||||
grid = 'narrow',
|
||||
header,
|
||||
innerGrid,
|
||||
title,
|
||||
} = Astro.props;
|
||||
|
||||
const gridClasses = cx('grid w-full grid-cols-18', { 'gap-y-gap': gap }, className);
|
||||
const wrapperClasses = cx(
|
||||
@@ -33,7 +44,7 @@ const wrapperClasses = cx(
|
||||
);
|
||||
---
|
||||
|
||||
<BaseLayout backLink={backLink} title={title}>
|
||||
<BaseLayout backLink={backLink} footer={footer} header={header} title={title}>
|
||||
<div class={gridClasses}>
|
||||
<slot name="title" />
|
||||
<slot name="before-content" />
|
||||
|
||||
Reference in New Issue
Block a user