mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-30 00:43:37 -05:00
parent
65f803e1fa
commit
3b42640e3f
1 changed files with 7 additions and 6 deletions
|
@ -2417,15 +2417,16 @@ Your rendered home page is blank: /index.html is zero-length
|
||||||
debugAddend)
|
debugAddend)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
// Avoid writing empty files to disk.
|
||||||
|
return nil
|
||||||
|
|
||||||
if err == nil {
|
}
|
||||||
|
|
||||||
if err = s.writeDestPage(dest, pageTarget, outBuffer); err != nil {
|
if err = s.writeDestPage(dest, pageTarget, outBuffer); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Site) renderForLayouts(name string, d interface{}, w io.Writer, layouts ...string) error {
|
func (s *Site) renderForLayouts(name string, d interface{}, w io.Writer, layouts ...string) error {
|
||||||
|
|
Loading…
Reference in a new issue