mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
@@ -170,10 +170,6 @@ func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error {
|
|||||||
h.SendError(fmt.Errorf("render: %w", err))
|
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
|
// Make sure to write any build stats to disk first so it's available
|
||||||
// to the post processors.
|
// to the post processors.
|
||||||
if err := h.writeBuildStats(); err != nil {
|
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))
|
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 {
|
if err := h.postProcess(infol); err != nil {
|
||||||
h.SendError(fmt.Errorf("postProcess: %w", err))
|
h.SendError(fmt.Errorf("postProcess: %w", err))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user