mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -119,11 +119,17 @@ func (n *Namespace) Eq(first interface{}, others ...interface{}) bool {
|
||||
normFirst := normalize(first)
|
||||
for _, other := range others {
|
||||
if e, ok := first.(compare.Eqer); ok {
|
||||
return e.Eq(other)
|
||||
if e.Eq(other) {
|
||||
return true
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
if e, ok := other.(compare.Eqer); ok {
|
||||
return e.Eq(first)
|
||||
if e.Eq(first) {
|
||||
return true
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
other = normalize(other)
|
||||
|
Reference in New Issue
Block a user