mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
fix: exclude 404
This commit is contained in:
parent
dd5b794c9b
commit
da7e62a1d8
@ -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.
|
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]
|
> [!note]
|
||||||
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
See [[CanvasPage.canvas]] for a live demo showcasing all supported features.
|
||||||
|
|
||||||
|
![[canvasPage.canvas]]
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
||||||
|
|
||||||
|
|||||||
@ -106,8 +106,8 @@
|
|||||||
"explorer": {
|
"explorer": {
|
||||||
"source": "github:quartz-community/explorer",
|
"source": "github:quartz-community/explorer",
|
||||||
"resolved": "https://github.com/quartz-community/explorer.git",
|
"resolved": "https://github.com/quartz-community/explorer.git",
|
||||||
"commit": "ab5a3187cf28822573042c4772e99d9a27ca1175",
|
"commit": "05c6ff66f3f85117f02634f3af4cca7f5221a5d4",
|
||||||
"installedAt": "2026-02-26T15:50:26.506Z"
|
"installedAt": "2026-02-26T21:15:30.250Z"
|
||||||
},
|
},
|
||||||
"favicon": {
|
"favicon": {
|
||||||
"source": "github:quartz-community/favicon",
|
"source": "github:quartz-community/favicon",
|
||||||
|
|||||||
@ -136,8 +136,11 @@ export const PageTypeDispatcher: QuartzEmitterPlugin<Partial<DispatcherOptions>>
|
|||||||
...vp.data,
|
...vp.data,
|
||||||
})
|
})
|
||||||
|
|
||||||
// Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them
|
// 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])
|
ctx.virtualPages.push([tree, vfile])
|
||||||
|
}
|
||||||
|
|
||||||
yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources)
|
yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources)
|
||||||
}
|
}
|
||||||
@ -189,8 +192,11 @@ export const PageTypeDispatcher: QuartzEmitterPlugin<Partial<DispatcherOptions>>
|
|||||||
...vp.data,
|
...vp.data,
|
||||||
})
|
})
|
||||||
|
|
||||||
// Expose virtual pages on ctx so other emitters (e.g. ContentIndex) can include them
|
// 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])
|
ctx.virtualPages.push([tree, vfile])
|
||||||
|
}
|
||||||
|
|
||||||
yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources)
|
yield emitPage(ctx, vpSlug, tree, vfile.data, allFiles, layout, resources)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,7 +134,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.desktop-only {
|
.desktop-only {
|
||||||
display: initial;
|
display: contents;
|
||||||
&.flex-component {
|
&.flex-component {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ a {
|
|||||||
&.flex-component {
|
&.flex-component {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
display: initial;
|
display: contents;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user