mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
hugolib: Add basic setup for output def per Kind
This commit is contained in:
parent
03122e51fa
commit
f091fc23ed
6 changed files with 109 additions and 8 deletions
|
@ -73,7 +73,7 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
|
|||
// TODO(bep) output
|
||||
layouts = pageOutput.layoutsCalculated
|
||||
} else {
|
||||
layouts = s.layoutHandler.For(pageOutput.layoutIdentifier, "", pageOutput.outputType)
|
||||
layouts = s.layouts(pageOutput)
|
||||
}
|
||||
|
||||
switch pageOutput.outputType {
|
||||
|
@ -87,7 +87,6 @@ func pageRenderer(s *Site, pages <-chan *Page, results chan<- error, wg *sync.Wa
|
|||
results <- err
|
||||
}
|
||||
|
||||
// Taxonomy terms have no page set to paginate, so skip that for now.
|
||||
if pageOutput.IsNode() {
|
||||
if err := s.renderPaginator(pageOutput); err != nil {
|
||||
results <- err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue