From da7e62a1d8c5d3d5ab32b1cbf48e3d40b987539a Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Thu, 26 Feb 2026 22:18:49 +0100 Subject: [PATCH] fix: exclude 404 --- docs/plugins/BasesPage.md | 4 ++++ docs/plugins/CanvasPage.md | 2 ++ quartz.lock.json | 4 ++-- quartz/plugins/pageTypes/dispatcher.ts | 14 ++++++++++---- quartz/styles/base.scss | 4 ++-- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/docs/plugins/BasesPage.md b/docs/plugins/BasesPage.md index dc8493b7f..16ba34c11 100644 --- a/docs/plugins/BasesPage.md +++ b/docs/plugins/BasesPage.md @@ -7,6 +7,10 @@ tags: This plugin provides support for [Obsidian Bases](https://obsidian.md/changelog/2025-04-15-desktop-v1.8.0/) (`.base` files) in Quartz. It reads `.base` files from your vault, resolves matching notes based on the query definition, and renders them as interactive database-like views with support for tables, lists, cards, and maps. +See [[navigation.base]] for a live demo showcasing all supported features. + +![[navigation.base]] + > [!note] > For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page. diff --git a/docs/plugins/CanvasPage.md b/docs/plugins/CanvasPage.md index 0d6139192..dfcd3ad3e 100644 --- a/docs/plugins/CanvasPage.md +++ b/docs/plugins/CanvasPage.md @@ -8,6 +8,8 @@ This plugin is a page type plugin that renders [JSON Canvas](https://jsoncanvas. See [[CanvasPage.canvas]] for a live demo showcasing all supported features. +![[canvasPage.canvas]] + > [!note] > For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page. diff --git a/quartz.lock.json b/quartz.lock.json index 39ee31144..274a4c2a2 100644 --- a/quartz.lock.json +++ b/quartz.lock.json @@ -106,8 +106,8 @@ "explorer": { "source": "github:quartz-community/explorer", "resolved": "https://github.com/quartz-community/explorer.git", - "commit": "ab5a3187cf28822573042c4772e99d9a27ca1175", - "installedAt": "2026-02-26T15:50:26.506Z" + "commit": "05c6ff66f3f85117f02634f3af4cca7f5221a5d4", + "installedAt": "2026-02-26T21:15:30.250Z" }, "favicon": { "source": "github:quartz-community/favicon", diff --git a/quartz/plugins/pageTypes/dispatcher.ts b/quartz/plugins/pageTypes/dispatcher.ts index 8e1d67f5c..3e983a6f9 100644 --- a/quartz/plugins/pageTypes/dispatcher.ts +++ b/quartz/plugins/pageTypes/dispatcher.ts @@ -136,8 +136,11 @@ export const PageTypeDispatcher: QuartzEmitterPlugin> ...vp.data, }) - // Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them - ctx.virtualPages.push([tree, vfile]) + // Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them. + // Skip special pages like 404 that shouldn't appear in content listings. + if (vpSlug !== "404") { + ctx.virtualPages.push([tree, vfile]) + } yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources) } @@ -189,8 +192,11 @@ export const PageTypeDispatcher: QuartzEmitterPlugin> ...vp.data, }) - // Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them - ctx.virtualPages.push([tree, vfile]) + // Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them. + // Skip special pages like 404 that shouldn't appear in content listings. + if (vpSlug !== "404") { + ctx.virtualPages.push([tree, vfile]) + } yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources) } diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 14e6ae674..59f9a9c04 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -134,7 +134,7 @@ a { } .desktop-only { - display: initial; + display: contents; &.flex-component { display: flex; } @@ -155,7 +155,7 @@ a { &.flex-component { display: flex; } - display: initial; + display: contents; } }