mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03: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:
parent
88972b0d5b
commit
063b78d2ec
15 changed files with 135 additions and 156 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue