| | |
| | | import { sharedPageComponents } from "../../../quartz.layout" |
| | | import { NotFound } from "../../components" |
| | | import { defaultProcessedContent } from "../vfile" |
| | | import { write } from "./helpers" |
| | | |
| | | export const NotFoundPage: QuartzEmitterPlugin = () => { |
| | | const opts: FullPageLayout = { |
| | |
| | | getQuartzComponents() { |
| | | return [Head, Body, pageBody, Footer] |
| | | }, |
| | | async emit(ctx, _content, resources, emit): Promise<FilePath[]> { |
| | | async emit(ctx, _content, resources): Promise<FilePath[]> { |
| | | const cfg = ctx.cfg.configuration |
| | | const slug = "404" as FullSlug |
| | | |
| | |
| | | } |
| | | |
| | | return [ |
| | | await emit({ |
| | | await write({ |
| | | ctx, |
| | | content: renderPage(slug, componentData, opts, externalResources), |
| | | slug, |
| | | ext: ".html", |