mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-21 09:42:07 +00:00
Return errors when rendering
This commit is contained in:
parent
0a79edd48a
commit
e66ba5d2a7
1 changed files with 6 additions and 2 deletions
|
@ -110,9 +110,13 @@ func (site *Site) Render() (err error) {
|
||||||
if err = site.RenderIndexes(); err != nil {
|
if err = site.RenderIndexes(); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
site.RenderIndexesIndexes()
|
if err = site.RenderIndexesIndexes(); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
site.timerStep("render and write indexes")
|
site.timerStep("render and write indexes")
|
||||||
site.RenderLists()
|
if err = site.RenderLists(); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
site.timerStep("render and write lists")
|
site.timerStep("render and write lists")
|
||||||
if err = site.RenderPages(); err != nil {
|
if err = site.RenderPages(); err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue