mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
8731d88222
commit
6cd0784e44
33 changed files with 1033 additions and 148 deletions
|
@ -111,7 +111,7 @@ func (s *Site) renderPages(ctx *siteRenderContext) error {
|
|||
|
||||
err := <-errs
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to render pages: %w", herrors.ImproveIfNilPointer(err))
|
||||
return fmt.Errorf("failed to render pages: %w", herrors.ImproveRenderErr(err))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ func (s *Site) renderPaginator(p *pageState, templ tpl.Template) error {
|
|||
paginatePath := s.Conf.Pagination().Path
|
||||
|
||||
d := p.targetPathDescriptor
|
||||
f := p.s.rc.Format
|
||||
f := p.outputFormat()
|
||||
d.Type = f
|
||||
|
||||
if p.paginator.current == nil || p.paginator.current != p.paginator.current.First() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue