diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-11 09:01:47 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 09:57:03 +0100 |
commit | 063b78d2ece39b82d0eb32ac5559097c2780cef8 (patch) | |
tree | c51091974d7c2304c154c902281a6ef2ebddab0b /hugolib/shortcode_test.go | |
parent | 88972b0d5b62861128f101256027a52ab48eae86 (diff) |
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/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index b2685e2ec..d8b8b411a 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -69,9 +69,9 @@ title: "Title" t.Fatalf("No error from shortcode") } - require.Len(t, h.Sites[0].Pages, 1) + require.Len(t, h.Sites[0].regularPages, 1) - output := strings.TrimSpace(string(h.Sites[0].Pages[0].Content)) + output := strings.TrimSpace(string(h.Sites[0].regularPages[0].Content)) if strings.HasPrefix(output, "<p>") { output = output[3:] } |