adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
10.26k stars 2.72k forks source link

[Bug]: site config key paginate was deprecated #1617

Closed Strubbl closed 1 month ago

Strubbl commented 1 month ago

What happened?

got a warning during site creation:

WARN deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead.

Steps to reproduce

generate the site with hugo v0.135.0

Hugo Version

Hugo >= 0.112.4 (Recommended - Minimum version required for PaperMod)

PaperMod Version

a2eb47bb4b805116dcd34c1605d39835121f8dbe

What kind of devices are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Browser Version

No response

Relevant log output

$ hugo -s .
WARN  deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead.
Start building sites … 
hugo v0.135.0+extended linux/amd64 BuildDate=unknown
...

Repository/Source Code link where this issue can be reproduced

No response

Code of Conduct

DanielHermosilla commented 1 month ago

I'm new to Hugo and the bug happened to me while following the quickstart guide. Apparently the error is not associated with PaperMod but with Hugo itself (since the quickstart is within the Anekene theme)

Strubbl commented 1 month ago

Thank you, just replacing paginate: 5 in the config yaml with

pagination:
  pagerSize: 5

resolves this warning.