mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
committed by
Bjørn Erik Pedersen
parent
54f8d8a70a
commit
f7bc4cc505
@@ -161,7 +161,8 @@ func renderAttributes(w util.BufWriter, skipClass bool, attributes ...ast.Attrib
|
||||
continue
|
||||
}
|
||||
|
||||
if attributeExcludes[string(attr.Name)] {
|
||||
a := strings.ToLower(string(attr.Name))
|
||||
if attributeExcludes[a] || strings.HasPrefix(a, "on") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user