This commit is contained in:
Harv 2025-10-18 15:43:03 +00:00 committed by GitHub
parent 37d4c7aebf
commit 50632a06e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 8 deletions

View File

@ -47,9 +47,9 @@ Common examples include:
Quartz supports **Unlisted Pages**, which allow you to publish notes that remain **accessible by direct link** but **hidden from navigation components** such as: Quartz supports **Unlisted Pages**, which allow you to publish notes that remain **accessible by direct link** but **hidden from navigation components** such as:
- the explorer sidebar - the explorer sidebar
- recent notes lists - recent notes lists
- tag or folder listings - tag or folder listings
This is useful for sharing content privately with collaborators, collecting feedback, or keeping drafts semi-private without fully unpublishing them. This is useful for sharing content privately with collaborators, collecting feedback, or keeping drafts semi-private without fully unpublishing them.
@ -65,4 +65,4 @@ If you want to apply this behavior to multiple files or folders, you can use the
This accepts an array of fast-glob patterns that identify which pages should be treated as unlisted. This accepts an array of fast-glob patterns that identify which pages should be treated as unlisted.
> [!note] > [!note]
> As with `ignorePatterns`, fast-glob syntax differs slightly from Bash glob syntax. Using Bash-style patterns may lead to unexpected results. > As with `ignorePatterns`, fast-glob syntax differs slightly from Bash glob syntax. Using Bash-style patterns may lead to unexpected results.

View File

@ -2,10 +2,7 @@ import { minimatch } from "minimatch"
import { QuartzPluginData } from "../vfile" import { QuartzPluginData } from "../vfile"
import { GlobalConfiguration } from "../../cfg" import { GlobalConfiguration } from "../../cfg"
export function isUnlisted( export function isUnlisted(fileData: QuartzPluginData, cfg: GlobalConfiguration): boolean {
fileData: QuartzPluginData,
cfg: GlobalConfiguration,
): boolean {
const unlistedFlag: boolean = const unlistedFlag: boolean =
fileData?.frontmatter?.unlisted === true || fileData?.frontmatter?.unlisted === "true" fileData?.frontmatter?.unlisted === true || fileData?.frontmatter?.unlisted === "true"