mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Refactor layout resolve to a descriptor/adapter pattern
This commit is contained in:
@@ -1361,7 +1361,6 @@ func TestIndexPageSimpleMethods(t *testing.T) {
|
||||
{func(n *Page) bool { return n.Scratch() != nil }},
|
||||
{func(n *Page) bool { return n.Hugo() != nil }},
|
||||
{func(n *Page) bool { return n.Now().Unix() == time.Now().Unix() }},
|
||||
{func(n *Page) bool { return n.layoutIdentifier.Kind == KindHome }},
|
||||
} {
|
||||
|
||||
n := s.newHomePage()
|
||||
|
Reference in New Issue
Block a user