mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
output: Rework the base template logic
Extract the logic to a testable function and add support for custom output types. Fixes #2995
This commit is contained in:
@@ -63,7 +63,9 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
|
||||
var mainPageOutput *PageOutput
|
||||
|
||||
for page := range pages {
|
||||
|
||||
for i, outFormat := range page.outputFormats {
|
||||
|
||||
pageOutput, err := newPageOutput(page, i > 0, outFormat)
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user