hugolib: Fix handling of zero-length files
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 23 Apr 2017 20:03:25 +0000 (22:03 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 23 Apr 2017 20:46:01 +0000 (22:46 +0200)
commit0e87b18b66d2c8ba9e2abc429630cb03f5b093d6
tree49f58317681a67aae9f90def687e069c1f63cc3a
parente98f885b8af27f5473a89d31d0b1f02e61e8a5ec
hugolib: Fix handling of zero-length files

This was a regression in Hugo 0.20. This commit makes sure that zeron-length files are not rendered to file.

Fixes #3355
hugolib/site.go
hugolib/site_render.go
hugolib/site_test.go
hugolib/testhelpers_test.go