feat(layout): wrap main around content

This commit is contained in:
vanadium23 2024-12-07 18:28:05 +03:00
parent e525f859c3
commit 883f4e6068
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import clipboardStyle from "./styles/clipboard.scss"
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
const Body: QuartzComponent = ({ children }: QuartzComponentProps) => { const Body: QuartzComponent = ({ children }: QuartzComponentProps) => {
return <main id="quartz-body">{children}</main> return <div id="quartz-body">{children}</div>
} }
Body.afterDOMLoaded = clipboardScript Body.afterDOMLoaded = clipboardScript

View File

@ -238,7 +238,9 @@ export function renderPage(
))} ))}
</div> </div>
</div> </div>
<Content {...componentData} /> <main>
<Content {...componentData} />
</main>
<hr /> <hr />
<div class="page-footer"> <div class="page-footer">
{afterBody.map((BodyComponent) => ( {afterBody.map((BodyComponent) => (