node to page: Make Nodes into Pages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 11 Nov 2016 08:01:47 +0000 (09:01 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
commit063b78d2ece39b82d0eb32ac5559097c2780cef8
treec51091974d7c2304c154c902281a6ef2ebddab0b
parent88972b0d5b62861128f101256027a52ab48eae86
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
15 files changed:
hugolib/embedded_shortcodes_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_sites_test.go
hugolib/menu_test.go
hugolib/node.go
hugolib/node_as_page_test.go
hugolib/page.go
hugolib/page_collections.go
hugolib/page_test.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/siteJSONEncode_test.go
hugolib/site_render.go
hugolib/site_test.go