mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-11-14 15:34:51 +00:00
22 lines
857 B
Markdown
22 lines
857 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$`).
|
||
|
|
||
|
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.
|