The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: clarifications about globs (#559)

* Add note about fast-glob

* Add warning about non-markdown files

Also added a glob pattern to filter out all non-markdown files outside of a specified folder.

* run npm format

---------

Co-authored-by: wych <wychwitchcraft@gmail.com>

authored by

Blue Rose
wych
and committed by
GitHub
06ccb89c 01fc8e46

+9 -1
+9 -1
docs/features/private pages.md
··· 12 12 13 13 If you'd like to only publish a select number of notes, you can instead use `Plugin.ExplicitPublish` which will filter out all notes except for any that have `publish: true` in the frontmatter. 14 14 15 + > [!warning] 16 + > Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc. One way to prevent this and still be able to embed local images is to create a folder specifically for public media and add the following two patterns to the ignorePatterns array. 17 + > 18 + > `"!(PublicMedia)**/!(*.md)", "!(*.md)"` 19 + 15 20 ## `ignorePatterns` 16 21 17 - This is a field in `quartz.config.ts` under the main [[configuration]] which allows you to specify a list of patterns to effectively exclude from parsing all together. Any valid [glob](https://github.com/mrmlnc/fast-glob#pattern-syntax) pattern works here. 22 + This is a field in `quartz.config.ts` under the main [[configuration]] which allows you to specify a list of patterns to effectively exclude from parsing all together. Any valid [fast-glob](https://github.com/mrmlnc/fast-glob#pattern-syntax) pattern works here. 23 + 24 + > [!note] 25 + > Bash's glob syntax is slightly different from fast-glob's and using bash's syntax may lead to unexpected results. 18 26 19 27 Common examples include: 20 28