parent
029d1e0ced
commit
eb7a5aabaa
1 changed files with 4 additions and 4 deletions
|
@ -170,10 +170,6 @@ func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error {
|
|||
h.SendError(fmt.Errorf("render: %w", err))
|
||||
}
|
||||
|
||||
if err := h.postRenderOnce(); err != nil {
|
||||
h.SendError(fmt.Errorf("postRenderOnce: %w", err))
|
||||
}
|
||||
|
||||
// Make sure to write any build stats to disk first so it's available
|
||||
// to the post processors.
|
||||
if err := h.writeBuildStats(); err != nil {
|
||||
|
@ -184,6 +180,10 @@ func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error {
|
|||
h.SendError(fmt.Errorf("renderDeferred: %w", err))
|
||||
}
|
||||
|
||||
if err := h.postRenderOnce(); err != nil {
|
||||
h.SendError(fmt.Errorf("postRenderOnce: %w", err))
|
||||
}
|
||||
|
||||
if err := h.postProcess(infol); err != nil {
|
||||
h.SendError(fmt.Errorf("postProcess: %w", err))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue