IDs still showing up in Hugo stats file

The IDs still show up on the Hugo stats JSON file on running hugo server with the configuration below… (I am using cachebusters settings too)

[build]
  writeStats = true
  [build.buildStats]
    disableIDs = true
...

https://gohugo.io/getting-started/configuration/#configure-build

With v0.115.0 and earlier this feature was enabled by setting writeStats to true. Although still functional, the writeStats key will be deprecated in a future release.

So this:

[build]
writeStats = true

takes precedence over this:

 [build.buildStats]

Do this:

[build.buildStats]
disableClasses = false
disableIDs = true
disableTags = false
enable = true

Do not include writeStats = true in your configuration.

1 Like

While at it, perhaps the recommended version in the quick start guide should be updated to version greater than 0.115.0

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.