mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Implement the first generic JSON output testcase
This commit is contained in:
@@ -548,7 +548,10 @@ func (s *Site) preparePagesForRender(cfg *BuildCfg) {
|
||||
p.Content = helpers.BytesToHTML(workContentCopy)
|
||||
}
|
||||
|
||||
p.outputTypes = defaultOutputDefinitions.ForKind(p.Kind)
|
||||
// May have been set in front matter
|
||||
if len(p.outputTypes) == 0 {
|
||||
p.outputTypes = defaultOutputDefinitions.ForKind(p.Kind)
|
||||
}
|
||||
|
||||
//analyze for raw stats
|
||||
p.analyzePage()
|
||||
|
Reference in New Issue
Block a user