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:
|
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.
|
||||||
|
|||||||
@ -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"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user