fix(404): update layout based on grid refactoring

update a regression given that our 404 pages would display weird layout, given that `left` and `right` are empty
This commit is contained in:
Aaron Pham 2024-11-10 04:54:02 -05:00 committed by GitHub
parent 0ad9111388
commit 0e53f3bee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import { pageResources, renderPage } from "../../components/renderPage"
import { FullPageLayout } from "../../cfg"
import { FilePath, FullSlug } from "../../util/path"
import { sharedPageComponents } from "../../../quartz.layout"
import { NotFound } from "../../components"
import { NotFound, Spacer } from "../../components"
import { defaultProcessedContent } from "../vfile"
import { write } from "./helpers"
import { i18n } from "../../i18n"
@ -16,8 +16,8 @@ export const NotFoundPage: QuartzEmitterPlugin = () => {
...sharedPageComponents,
pageBody: NotFound(),
beforeBody: [],
left: [],
right: [],
left: [Spacer()],
right: [Spacer()],
}
const { head: Head, pageBody, footer: Footer } = opts