mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -14,15 +14,14 @@
|
||||
package publisher
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
"golang.org/x/net/html"
|
||||
|
||||
"bytes"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
"golang.org/x/net/html"
|
||||
)
|
||||
|
||||
func newHTMLElementsCollector() *htmlElementsCollector {
|
||||
@@ -52,7 +51,6 @@ func (h *HTMLElements) Merge(other HTMLElements) {
|
||||
h.Tags = helpers.UniqueStringsReuse(h.Tags)
|
||||
h.Classes = helpers.UniqueStringsReuse(h.Classes)
|
||||
h.IDs = helpers.UniqueStringsReuse(h.IDs)
|
||||
|
||||
}
|
||||
|
||||
func (h *HTMLElements) Sort() {
|
||||
@@ -153,7 +151,6 @@ func (c *cssClassCollectorWriter) insertStandinHTMLElement(el string) (string, s
|
||||
}
|
||||
newv := strings.Replace(el, tag, "div", 1)
|
||||
return newv, strings.ToLower(tag)
|
||||
|
||||
}
|
||||
|
||||
func (c *cssClassCollectorWriter) endCollecting(drop bool) {
|
||||
@@ -196,7 +193,6 @@ type htmlElementsCollector struct {
|
||||
}
|
||||
|
||||
func (c *htmlElementsCollector) getHTMLElements() HTMLElements {
|
||||
|
||||
var (
|
||||
classes []string
|
||||
ids []string
|
||||
|
Reference in New Issue
Block a user