mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Reset translation slice on rebuild
Also add all translations, including the current, to the slice. We filter later.
This commit is contained in:
@@ -2048,12 +2048,6 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou
|
||||
return err
|
||||
}
|
||||
|
||||
if renderBuffer.Len() == 0 {
|
||||
if p, ok := d.(*Page); ok {
|
||||
fmt.Println(">>>>", p.Lang(), len(p.Content))
|
||||
}
|
||||
}
|
||||
|
||||
outBuffer := bp.GetBuffer()
|
||||
defer bp.PutBuffer(outBuffer)
|
||||
|
||||
|
Reference in New Issue
Block a user