mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
config: Fix pagination deprecation messages
This commit is contained in:
parent
46484bff84
commit
7792392a6f
1 changed files with 2 additions and 2 deletions
|
@ -381,12 +381,12 @@ func (c *Config) CompileConfig(logger loggers.Logger) error {
|
||||||
|
|
||||||
// Legacy paginate values.
|
// Legacy paginate values.
|
||||||
if c.Paginate != 0 {
|
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
|
c.Pagination.PagerSize = c.Paginate
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.PaginatePath != "" {
|
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
|
c.Pagination.Path = c.PaginatePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue