mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Add basic setup for output def per Kind
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user