aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-03 09:58:33 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-03 09:58:33 +0200
commitceb486f98c9e5c9308d33c1a54855f44f8207de7 (patch)
treedc6b5d3583839ea78cafb77ded5eef761a33305a /hugolib
parent5afc89f2bfb3e582bface8a9980e60782ece9880 (diff)
downloadhugo-ceb486f98c9e5c9308d33c1a54855f44f8207de7.tar.gz
hugo-ceb486f98c9e5c9308d33c1a54855f44f8207de7.zip
Fix buildStats when tags and classes are disabled
Fixes #11202
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/site_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index 21029352f..effdac6df 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -1232,6 +1232,15 @@ disabletags = true
b = r(`
[build.buildStats]
+enable = true
+disabletags = true
+disableclasses = true
+ `)
+
+ b.AssertFileContent("hugo_stats.json", "! myclass", "! div", "myid")
+
+ b = r(`
+[build.buildStats]
enable = false
`)
b.AssertDestinationExists("hugo_stats.json", false)