mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add before and after content slots to layout
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user