node to page: Only return regular pages in home.Data.Pages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Nov 2016 09:29:11 +0000 (10:29 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
commit28031b0897d7b0f216f60983cb55bd62cc0e06bc
treeb6c0e86f9f05ec010be1b3b1e985538faf5d12e0
parenta843d5d3bbc833f00b82647295ac8a7e50fa7da2
node to page: Only return regular pages in home.Data.Pages

Returning all types is both confusing and too breaking.

All page types can be fetched in .Site.Pages.

Updates #2297
hugolib/node_as_page_test.go
hugolib/page.go