Fix it so the owning taxonomy gets rerendered in server when new tags are added

Updates #13648
This commit is contained in:
Bjørn Erik Pedersen
2025-04-27 18:58:25 +02:00
parent 673a4d00eb
commit a1cb15e1cf
3 changed files with 46 additions and 0 deletions

View File

@@ -324,6 +324,14 @@ func (h *HugoSites) assemble(ctx context.Context, l logg.LevelLogger, bcfg *Buil
}
}
// Handle new terms from assemblePagesStep2.
changes = bcfg.WhatChanged.Drain()
if len(changes) > 0 {
if err := h.resolveAndClearStateForIdentities(ctx, l, nil, changes); err != nil {
return err
}
}
h.renderFormats = output.Formats{}
for _, s := range h.Sites {
s.s.initRenderFormats()