1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-07-24 07:11:24 +00:00
Files
.github
assets
content
notes
images
CJK + Latex Support (测试).md
config.md
custom Domain.md
editing.md
hosting.md
ignore notes.md
obsidian.md
philosophy.md
preview changes.md
setup.md
showcase.md
troubleshooting.md
private
templates
_index.md
data
layouts
static
.gitignore
.hugo_build.lock
.prettierrc
CODE_OF_CONDUCT.md
LICENSE.txt
Makefile
README.md
config.toml
screenshot.png
brain-quartz/content/notes/ignore notes.md

31 lines
1022 B
Markdown

---
title: "Ignoring Notes"
---
### Quartz Ignore
Edit `ignoreFiles` in `config.toml` to include paths you'd like to exclude from being rendered.
```toml
...
ignoreFiles = [
"/content/templates/*",
"/content/private/*",
"<your path here>"
]
```
`ignoreFiles` supports the use of Regular Expressions (RegEx) so you can ignore patterns as well (e.g. ignoring all `.png`s by doing `\\.png$`).
To ignore a specific file, you can also add the tag `draft: true` to the frontmatter of a note.
```markdown
---
title: Some Private Note
draft: true
---
...
```
More details in [Hugo's documentation](https://gohugo.io/getting-started/configuration/#ignore-content-and-data-files-when-rendering).
### Global Ignore
However, just adding to the `ignoreFiles` will only prevent the page from being access through Quartz. If you want to prevent the file from being pushed to GitHub (for example if you have a public repository), you need to also add the path to the `.gitignore` file at the root of the repository.