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`: