publisher: Exclude comment and doctype elements from writeStats
authorDirk Olbrich <mail@dirkolbrich.de>
Mon, 12 Apr 2021 21:42:51 +0000 (23:42 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 20 Apr 2021 15:24:17 +0000 (17:24 +0200)
commitbc80022e033a5462d1a9ce541f40a050994011cc
tree2767906a3b8dec84e332e35f4c0a2236dff4add7
parent2bb9496ce29dfe90e8b3664ed8cf7f895011b2d4
publisher: Exclude comment and doctype elements from writeStats

- Reorder code blocks
- Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information
- Expand benchmark to test for minified and unminified content

Fixes #8396
Fixes #8417
hugolib/site_test.go
publisher/htmlElementsCollector.go
publisher/htmlElementsCollector_test.go