mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
pretty
This commit is contained in:
parent
37d4c7aebf
commit
50632a06e9
@ -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:
|
||||
|
||||
- the explorer sidebar
|
||||
- recent notes lists
|
||||
- tag or folder listings
|
||||
- the explorer sidebar
|
||||
- recent notes lists
|
||||
- tag or folder listings
|
||||
|
||||
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.
|
||||
|
||||
> [!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.
|
||||
|
||||
@ -2,10 +2,7 @@ import { minimatch } from "minimatch"
|
||||
import { QuartzPluginData } from "../vfile"
|
||||
import { GlobalConfiguration } from "../../cfg"
|
||||
|
||||
export function isUnlisted(
|
||||
fileData: QuartzPluginData,
|
||||
cfg: GlobalConfiguration,
|
||||
): boolean {
|
||||
export function isUnlisted(fileData: QuartzPluginData, cfg: GlobalConfiguration): boolean {
|
||||
const unlistedFlag: boolean =
|
||||
fileData?.frontmatter?.unlisted === true || fileData?.frontmatter?.unlisted === "true"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user