Prevent cyclic ref crash in JSON encode
authorbep <bjorn.erik.pedersen@gmail.com>
Sat, 23 May 2015 10:28:01 +0000 (12:28 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 23 May 2015 10:28:08 +0000 (12:28 +0200)
commitbe7c3bbb097eb104c7029d742c6501c5d18d8684
tree4b0c5ab41e2f464a13d9be6e0c44369e129ea1eb
parentbe778c31606b08e7320cafb6082700e4240be2fd
Prevent cyclic ref crash in JSON encode

Note that this commit makes no promise about great JSON output from the encoder, but the cyclic refs should be broken.

Fixes #1123
hugolib/node.go
hugolib/page.go
hugolib/site.go
hugolib/siteJSONEncode_test.go [new file with mode: 0644]