hugolib: Fix HugoSites.createMissingPages
authorAnton Staaf <anton@socialhacker.com>
Sat, 4 Mar 2017 00:00:11 +0000 (16:00 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 4 Mar 2017 20:37:52 +0000 (21:37 +0100)
commit22c89dcb6c850d1c7645b0daa392e0ce284e3513
tree90f7783d8e8efcaead0599ca342b1c787ea8bd46
parentd0e2a1fa14f95d277aa01bfc635d9270ecd43c46
hugolib: Fix HugoSites.createMissingPages

Previously it would only check for existing KindTaxonomyTerm pages
if the taxonomy had any terms defined.  So for a taxonomy with no terms
but a taxonomy terms page it would generate a second empty terms page.
hugolib/hugo_sites.go
hugolib/node_as_page_test.go