fix(hugo): ignore non-data files in data/metrics/ for Hugo build (#165)
The directory mount 'data/metrics' loads all files as Hugo data. copilot-transcript.md (markdown) and token-usage.jsonl (jsonl) are not valid Hugo data formats and broke the build with: ERROR error building site: failed to load data: unmarshal of format "" is not supported The previous ignoreFiles pattern 'data/metrics/' did not actually match — Hugo's ignoreFiles regex needs explicit file patterns. Only cost-summary.json is used by layouts/shortcodes/cost-dashboard.html. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Juan Manuel Servera committed
May 25, 2026 at 16:03 UTC
156d2fca08ffe3ea3c8e2d4f826cb99b10c7020e
1 file changed
+1
-1
hugo.toml
+1
-1
@@ -98,7 +98,7 @@ rssLimit = 20
98
url = '/index.xml'
99
weight = 80
100
101
-ignoreFiles = ['data/analyzed/.*\\.md$', 'data/metrics/']
101
+ignoreFiles = ['data/analyzed/.*\\.md$', 'data/metrics/.*\\.md$', 'data/metrics/.*\\.jsonl$']
102
103
[module]
104
[[module.mounts]]