aboutsummaryrefslogtreecommitdiffhomepage
path: root/publisher/publisher.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-02 11:02:47 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-02 13:04:11 +0200
commit5afc89f2bfb3e582bface8a9980e60782ece9880 (patch)
tree325ac10ec7f26da64d7e20f11219d91428f64dba /publisher/publisher.go
parentc1eac616d55945c28ea364f44d1e9ae12e672e11 (diff)
downloadhugo-5afc89f2bfb3e582bface8a9980e60782ece9880.tar.gz
hugo-5afc89f2bfb3e582bface8a9980e60782ece9880.zip
Rework the build.writeStats struct
Mostly to make it easier to toggle on/off this feature from the env. See #11191
Diffstat (limited to 'publisher/publisher.go')
-rw-r--r--publisher/publisher.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/publisher/publisher.go b/publisher/publisher.go
index 37d8b36e4..39274b2a9 100644
--- a/publisher/publisher.go
+++ b/publisher/publisher.go
@@ -81,8 +81,8 @@ func NewDestinationPublisher(rs *resources.Spec, outputFormats output.Formats, m
fs := rs.BaseFs.PublishFs
cfg := rs.Cfg
var classCollector *htmlElementsCollector
- if rs.BuildConfig().WriteStats.Enabled() {
- classCollector = newHTMLElementsCollector(rs.BuildConfig().WriteStats)
+ if rs.BuildConfig().BuildStats.Enabled() {
+ classCollector = newHTMLElementsCollector(rs.BuildConfig().BuildStats)
}
pub = DestinationPublisher{fs: fs, htmlElementsCollector: classCollector}
pub.min, err = minifiers.New(mediaTypes, outputFormats, cfg)