hugolib: Add basic setup for output def per Kind

This commit is contained in:
Bjørn Erik Pedersen
2017-03-07 14:20:39 +01:00
parent 03122e51fa
commit f091fc23ed
6 changed files with 109 additions and 8 deletions

View File

@@ -548,12 +548,7 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) {
p.Content = helpers.BytesToHTML(workContentCopy)
}
// TODO(bep) output this is temporary
if p.IsNode() {
p.outputTypes = outputTypesWithRSS
} else {
p.outputTypes = outputTypesHTML
}
p.outputTypes = defaultOutputDefinitions.ForKind(p.Kind)
//analyze for raw stats
p.analyzePage()