Skip to content

Commit

Permalink
config: Fix pagination deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored and bep committed Aug 21, 2024
1 parent 46484bf commit 7792392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/allconfig/allconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ func (c *Config) CompileConfig(logger loggers.Logger) error {

// Legacy paginate values.
if c.Paginate != 0 {
hugo.Deprecate("site config key paginate", "Use paginator.pagerSize instead.", "v0.128.0")
hugo.Deprecate("site config key paginate", "Use pagination.pagerSize instead.", "v0.128.0")
c.Pagination.PagerSize = c.Paginate
}

if c.PaginatePath != "" {
hugo.Deprecate("site config key paginatePath", "Use paginator.path instead.", "v0.128.0")
hugo.Deprecate("site config key paginatePath", "Use pagination.path instead.", "v0.128.0")
c.Pagination.Path = c.PaginatePath
}

Expand Down

0 comments on commit 7792392

Please sign in to comment.