mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Don't shutdown hugo on an empty file.
This commit is contained in:
parent
8d80f9b39e
commit
1c60d5bf20
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue