diff --git a/docs/features/private pages.md b/docs/features/private pages.md index 75ab8e6ad..1ee6311ec 100644 --- a/docs/features/private pages.md +++ b/docs/features/private pages.md @@ -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. \ No newline at end of file +> As with `ignorePatterns`, fast-glob syntax differs slightly from Bash glob syntax. Using Bash-style patterns may lead to unexpected results. diff --git a/quartz/plugins/filters/unlisted.ts b/quartz/plugins/filters/unlisted.ts index fbb6230fd..2e42af348 100644 --- a/quartz/plugins/filters/unlisted.ts +++ b/quartz/plugins/filters/unlisted.ts @@ -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"