mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
node to page: Make Nodes into Pages
* `.Site.Pages` now contains all page types, including sections etc. * `.Data.Pages` will also contain "node type" pages where relevant. Updates #2297
This commit is contained in:
@@ -30,7 +30,7 @@ func TestEncodePage(t *testing.T) {
|
||||
_, err := json.Marshal(s)
|
||||
check(t, err)
|
||||
|
||||
_, err = json.Marshal(s.Pages[0])
|
||||
_, err = json.Marshal(s.regularPages[0])
|
||||
check(t, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user