feat: add before and after content slots to layout

This commit is contained in:
Stefan Imhoff
2023-04-06 15:15:33 +02:00
parent 480cce7adc
commit 73fb3d853f
2 changed files with 7 additions and 12 deletions

View File

@@ -27,6 +27,7 @@ const wrapperClasses = cx(
<BaseLayout title={frontmatter.title}>
<div class={gridClasses}>
<slot name="title" />
<slot name="before-content" />
{
gridVariant !== 'fullsize' ? (
<div class={wrapperClasses}>
@@ -36,5 +37,6 @@ const wrapperClasses = cx(
<slot />
)
}
<slot name="after-content" />
</div>
</BaseLayout>