node to page: Add Pages to Page
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 11 Nov 2016 08:19:16 +0000 (09:19 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
commitc80308e6b3f3f4f6879ee6b7301575f162ac9209
tree6647f3f6e8053bf20fcd468e1b2d4a3c233b9f02
parent063b78d2ece39b82d0eb32ac5559097c2780cef8
node to page: Add Pages to Page

As an alias to .Data.Pages for home page etc.

Also renamte NodeType to PageType and make it a string so it can be used in `where`.

Updates #2297
13 files changed:
hugolib/hugo_sites.go
hugolib/hugo_sites_test.go
hugolib/menu_test.go
hugolib/node.go
hugolib/node_as_page_test.go
hugolib/node_test.go [deleted file]
hugolib/page.go
hugolib/page_collections.go
hugolib/page_permalink_test.go
hugolib/page_test.go
hugolib/pagination.go
hugolib/site.go
hugolib/site_render.go