aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/siteJSONEncode_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-11-11 09:01:47 +0100
committerBjørn Erik Pedersen <[email protected]>2016-11-22 09:57:03 +0100
commit063b78d2ece39b82d0eb32ac5559097c2780cef8 (patch)
treec51091974d7c2304c154c902281a6ef2ebddab0b /hugolib/siteJSONEncode_test.go
parent88972b0d5b62861128f101256027a52ab48eae86 (diff)
downloadhugo-063b78d2ece39b82d0eb32ac5559097c2780cef8.tar.gz
hugo-063b78d2ece39b82d0eb32ac5559097c2780cef8.zip
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
Diffstat (limited to 'hugolib/siteJSONEncode_test.go')
-rw-r--r--hugolib/siteJSONEncode_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/siteJSONEncode_test.go b/hugolib/siteJSONEncode_test.go
index cf34fe728..9e2f6ecc2 100644
--- a/hugolib/siteJSONEncode_test.go
+++ b/hugolib/siteJSONEncode_test.go
@@ -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)
}