mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
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:
parent
0ad9111388
commit
0e53f3bee2
@ -5,7 +5,7 @@ import { pageResources, renderPage } from "../../components/renderPage"
|
|||||||
import { FullPageLayout } from "../../cfg"
|
import { FullPageLayout } from "../../cfg"
|
||||||
import { FilePath, FullSlug } from "../../util/path"
|
import { FilePath, FullSlug } from "../../util/path"
|
||||||
import { sharedPageComponents } from "../../../quartz.layout"
|
import { sharedPageComponents } from "../../../quartz.layout"
|
||||||
import { NotFound } from "../../components"
|
import { NotFound, Spacer } from "../../components"
|
||||||
import { defaultProcessedContent } from "../vfile"
|
import { defaultProcessedContent } from "../vfile"
|
||||||
import { write } from "./helpers"
|
import { write } from "./helpers"
|
||||||
import { i18n } from "../../i18n"
|
import { i18n } from "../../i18n"
|
||||||
@ -16,8 +16,8 @@ export const NotFoundPage: QuartzEmitterPlugin = () => {
|
|||||||
...sharedPageComponents,
|
...sharedPageComponents,
|
||||||
pageBody: NotFound(),
|
pageBody: NotFound(),
|
||||||
beforeBody: [],
|
beforeBody: [],
|
||||||
left: [],
|
left: [Spacer()],
|
||||||
right: [],
|
right: [Spacer()],
|
||||||
}
|
}
|
||||||
|
|
||||||
const { head: Head, pageBody, footer: Footer } = opts
|
const { head: Head, pageBody, footer: Footer } = opts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user