diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-13 14:27:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 09:57:03 +0100 |
commit | c8d3124ddeb86093caf1b18dfaa328c3053e5b63 (patch) | |
tree | 70ff5902eb6ceb5e27202c21b9189e18ee3ea8cb /hugolib/pagination_test.go | |
parent | 9347084d61a91c73bba1e04790b029163c38bacf (diff) |
node to page: Remove Node
And misc. TODO-fixes
Updates #2297
Diffstat (limited to 'hugolib/pagination_test.go')
-rw-r--r-- | hugolib/pagination_test.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/hugolib/pagination_test.go b/hugolib/pagination_test.go index 7cd94259f..591d09047 100644 --- a/hugolib/pagination_test.go +++ b/hugolib/pagination_test.go @@ -457,13 +457,11 @@ func createTestPages(num int) Pages { info := newSiteInfo(siteBuilderCfg{baseURL: "http://base/", language: helpers.NewDefaultLanguage()}) for i := 0; i < num; i++ { pages[i] = &Page{ - Node: Node{ - URLPath: URLPath{ - Section: "z", - URL: fmt.Sprintf("http://base/x/y/p%d.html", i), - }, - Site: &info, + URLPath: URLPath{ + Section: "z", + URL: fmt.Sprintf("http://base/x/y/p%d.html", i), }, + Site: &info, Source: Source{File: *source.NewFile(filepath.FromSlash(fmt.Sprintf("/x/y/p%d.md", i)))}, } w := 5 |