hugolib: More TODO fixes

This commit is contained in:
Bjørn Erik Pedersen
2017-03-25 18:28:38 +01:00
parent 3cd97951f1
commit b7ed67d425
5 changed files with 11 additions and 62 deletions

View File

@@ -79,9 +79,8 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
var layouts []string
if len(pageOutput.layoutsCalculated) > 0 {
// TODO(bep) output
layouts = pageOutput.layoutsCalculated
if page.selfLayout != "" {
layouts = []string{page.selfLayout}
} else {
layouts = s.layouts(pageOutput)
}