From 56824be2cc7b688d67fc527b647200c76d712d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 13 Dec 2022 17:06:38 +0100 Subject: [PATCH] Update configuration.md --- content/en/getting-started/configuration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index 5a65dcdfc..186d29f2b 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -645,6 +645,8 @@ Test and document setting params via JSON env var. ## Ignore Content and Data Files when Rendering +**Note:** This works, but we recommend you use the newer and more powerful [includeFiles and excludeFiles](https://gohugo.io/hugo-modules/configuration/#module-config-mounts) mount options. + To exclude specific files from the `content` and `data` directories when rendering your site, set `ignoreFiles` to one or more regular expressions to match against the absolute file path. To ignore files ending with `.foo` or `.boo`: