diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-03 09:58:33 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-07-03 09:58:33 +0200 |
commit | ceb486f98c9e5c9308d33c1a54855f44f8207de7 (patch) | |
tree | dc6b5d3583839ea78cafb77ded5eef761a33305a /hugolib | |
parent | 5afc89f2bfb3e582bface8a9980e60782ece9880 (diff) |
Fix buildStats when tags and classes are disabled
Fixes #11202
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site_test.go | 9 |
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) |