node to page: Fix the Page copy()
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 16 Nov 2016 19:32:38 +0000 (20:32 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Nov 2016 08:57:03 +0000 (09:57 +0100)
commit99d11386a7de544f044f30782310175cf2df4004
treef81904beffe31eec6ad8c4cdad481f7f07e92bf0
parent62e9e7e6ba3eee386c95d0420386132ad8acaa7e
node to page: Fix the Page copy()

By embeding the init sync.Once var in a pointer so we can reset it when we copy the page.

Updates #2297
hugolib/hugo_sites.go
hugolib/page.go
hugolib/pageSort_test.go
hugolib/page_permalink_test.go
hugolib/page_test.go
hugolib/pagination_test.go