Don't shutdown hugo on an empty file.

This commit is contained in:
Egon Elbre 2013-12-16 10:34:26 +02:00 committed by spf13
parent 8d80f9b39e
commit 1c60d5bf20

View file

@ -64,12 +64,12 @@ func (p *page) IsRenderable() bool {
func ReadFrom(r io.Reader) (p Page, err error) {
reader := bufio.NewReader(r)
if err = chompWhitespace(reader); err != nil {
if err = chompWhitespace(reader); err != nil && err != io.EOF {
return
}
firstLine, err := peekLine(reader)
if err != nil {
if err != nil && err != io.EOF {
return
}