--- // Layout front-matter flags are plain props here. // TODO: layout-navbar-overlap && layout-navbar-dark → extra text-white class // on .page-header — both unset on the homepage. import HeaderActionsButtons from './HeaderActionsButtons.astro'; import HeaderActionsPrint from './HeaderActionsPrint.astro'; import HeaderActionsPhotos from './HeaderActionsPhotos.astro'; import HeaderActionsBreadcrumb from './HeaderActionsBreadcrumb.astro'; import HeaderActionsAddBoard from './HeaderActionsAddBoard.astro'; import HeaderActionsAddJob from './HeaderActionsAddJob.astro'; import HeaderActionsUsers from './HeaderActionsUsers.astro'; import HeaderProfile from './HeaderProfile.astro'; import HeaderUptime from './HeaderUptime.astro'; interface Props { /** page-header — the page title; without it the whole block is not rendered */ title?: string | undefined; /** page-header-pretitle */ pretitle?: string | undefined; /** page-header-description */ description?: string | undefined; /** page-header-actions — name of an include from layout/header-actions/, e.g. "buttons" */ actions?: string | undefined; /** page-header-class */ class?: string; /** page-header-file — name of an include from layout/headers/, e.g. "profile" */ file?: string | undefined; /** layout-navbar-overlap && layout-navbar-dark → text-white on .page-header */ textWhite?: boolean | undefined; } const { title, pretitle, description, actions, class: className, file, textWhite } = Astro.props; --- {file === 'profile' && } {file === 'uptime' && } { !file && title && (
{pretitle && (
{pretitle}
)}

{title}

{description &&
{description}
}
{actions && (
{actions === 'buttons' && } {actions === 'print' && } {actions === 'photos' && } {actions === 'breadcrumb' && } {actions === 'add-board' && } {actions === 'add-job' && } {actions === 'users' && }
)}
) }