commit beaa1b3aad578ebbbdf426321ed1758eb1068946
parent bec3f40359f076b966ede15cb967e2f3873a74b4
Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Wed, 3 Jun 2015 13:46:55 +0200
Add some docs for IgnoreFiles
See #1189
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md
@@ -139,6 +139,15 @@ Following is a list of Hugo-defined variables that you can configure and their c
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.