mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-15 02:04:02 +00:00
parent
bec3f40359
commit
beaa1b3aad
1 changed files with 9 additions and 0 deletions
|
@ -139,6 +139,15 @@ Following is a list of Hugo-defined variables that you can configure and their c
|
||||||
watch: false
|
watch: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Ignore files on build
|
||||||
|
|
||||||
|
The following inside `config.toml` will ignore files ending with `.foo` and `.boo` when building with `hugo`.
|
||||||
|
|
||||||
|
```
|
||||||
|
ignoreFiles = [ "\\.foo$", "\\.boo$" ]
|
||||||
|
```
|
||||||
|
|
||||||
|
The above is is a list of Reqular Expressions, but note the escaping of the `\` to make TOML happy.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue