hugolob: A first incorporation of output types in rendering

This commit is contained in:
Bjørn Erik Pedersen
2017-03-06 13:40:06 +01:00
parent 10de077164
commit 254cd89c8e
5 changed files with 25 additions and 16 deletions

View File

@@ -550,9 +550,9 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) {
// TODO(bep) output this is temporary
if p.IsNode() && p.Kind != KindTaxonomyTerm {
p.mediaTypes = mediaTypesWithRSS
p.outputTypes = outputTypesWithRSS
} else {
p.mediaTypes = mediaTypesHTML
p.outputTypes = outputTypesHTML
}
//analyze for raw stats