hugolib: Fix panic for unused taxonomy content files
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Apr 2019 07:38:14 +0000 (09:38 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Apr 2019 11:36:05 +0000 (13:36 +0200)
commitb799b12f4a693dfeae8a5a362f131081a727bb8f
treecec0b90c41aea0f091ac5aa8dc72fc7380f78253
parent701486728e21bc0c6c78c2a8edb988abdf6116c7
hugolib: Fix panic for unused taxonomy content files

In Hugo 0.55 we connected the taxonomy nodes with their owning Page.

This failed if you had, say, a content file for a author that did not author anything in the site:

```
content/authors/silent-persin/_index.md
```

Fixes #5847
hugolib/hugo_sites.go
hugolib/page.go
hugolib/site.go
hugolib/taxonomy.go
hugolib/taxonomy_test.go