mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
feat(layout): wrap main around content
This commit is contained in:
parent
e525f859c3
commit
883f4e6068
@ -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
|
||||||
|
|||||||
@ -238,7 +238,9 @@ export function renderPage(
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<main>
|
||||||
<Content {...componentData} />
|
<Content {...componentData} />
|
||||||
|
</main>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="page-footer">
|
<div class="page-footer">
|
||||||
{afterBody.map((BodyComponent) => (
|
{afterBody.map((BodyComponent) => (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user