mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00: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