diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-07-25 23:38:37 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-06 18:32:16 +0300 |
commit | 618948e4a83665f8355b01d8a3f7a7186e6bd3eb (patch) | |
tree | b712c4d7520738eb706e0a785c49d29711fa5a42 /hugolib/site.go | |
parent | c447b7dd6efcb662f177ad0c9037133361ed74e3 (diff) |
Reset translation slice on rebuild
Also add all translations, including the current, to the slice. We filter later.
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index ff67eb48a..b2a9161f4 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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) |