fix(hugo): use excludeFiles on data/metrics mount (#167)
The ignoreFiles directive does NOT apply to files loaded via module mounts. Need excludeFiles on the mount itself. Verified locally with Hugo 0.161.1: build succeeds, W21 + W22 render with the correct titles. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Juan Manuel Servera committed
May 25, 2026 at 16:08 UTC
d8cfd887a6d589524c8307c5bae0d321fc654dba
1 file changed
+1
hugo.toml
+1
@@ -110,6 +110,7 @@ ignoreFiles = ['data/analyzed/.*\\.md$', 'data/metrics/.*\\.md$', 'data/metrics/
110
[[module.mounts]]
111
source = 'data/metrics'
112
target = 'data/metrics'
113
+ excludeFiles = ['*.md', '*.jsonl']
114
[[module.mounts]]
115
source = 'content'
116
target = 'content'