Reset translation slice on rebuild

Also add all translations, including the current, to the slice. We filter later.
This commit is contained in:
Bjørn Erik Pedersen
2016-07-25 23:38:37 +02:00
parent c447b7dd6e
commit 618948e4a8
2 changed files with 1 additions and 9 deletions

View File

@@ -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)