mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
6436deb3e1
The contentInclusionFilter used strings.Contains to match filenames against the target path. Because strings.Contains is a substring check, a directory entry like "content/about" matches "content/about.md", causing unrelated files to be pulled into the mini-build. Whether the conflict was then detected depended on whether the filesystem walker delivered a directory entry or a full file path. Also adds an upfront check for the directory-conflict case, since a corrected filter alone would allow about.md to be created alongside an existing about/ directory. Closes #12602 Closes #12786 Closes #14112 Closes #14769 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>