fix: 404 page styling for nested pages (closes #458)
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user