fix: 404 page styling for nested pages (closes )

This commit is contained in:
Jacky Zhao 2023-09-12 21:29:57 -07:00
parent 71d81bde1d
commit 60a3c54339
7 changed files with 31 additions and 13 deletions
quartz/plugins/emitters

View file

@ -28,7 +28,10 @@ export const NotFoundPage: QuartzEmitterPlugin = () => {
async emit(ctx, _content, resources, emit): Promise<FilePath[]> {
const cfg = ctx.cfg.configuration
const slug = "404" as FullSlug
const externalResources = pageResources(slug, resources)
const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`)
const path = url.pathname as FullSlug
const externalResources = pageResources(path, resources)
const [tree, vfile] = defaultProcessedContent({
slug,
text: "Not Found",