diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-03 09:58:33 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-03 09:58:33 +0200 |
commit | ceb486f98c9e5c9308d33c1a54855f44f8207de7 (patch) | |
tree | dc6b5d3583839ea78cafb77ded5eef761a33305a /publisher | |
parent | 5afc89f2bfb3e582bface8a9980e60782ece9880 (diff) | |
download | hugo-ceb486f98c9e5c9308d33c1a54855f44f8207de7.tar.gz hugo-ceb486f98c9e5c9308d33c1a54855f44f8207de7.zip |
Fix buildStats when tags and classes are disabled
Fixes #11202
Diffstat (limited to 'publisher')
-rw-r--r-- | publisher/htmlElementsCollector.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/publisher/htmlElementsCollector.go b/publisher/htmlElementsCollector.go index c942c46e5..c9d81818c 100644 --- a/publisher/htmlElementsCollector.go +++ b/publisher/htmlElementsCollector.go @@ -372,11 +372,6 @@ func htmlLexToEndOfComment(w *htmlElementsCollectorWriter) htmlCollectorStateFun func (w *htmlElementsCollectorWriter) parseHTMLElement(elStr string) (el htmlElement, err error) { conf := w.collector.conf - if conf.DisableTags && conf.DisableClasses { - // Nothing to do. - return - } - tagName := parseStartTag(elStr) el.Tag = strings.ToLower(tagName) |