You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the hugo version for our website to 0.139.0 lately. The build now gives this warning:
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.
Therfore i changed the entry in the config.toml from
paginate = "6"
to
[pagination]
pagerSize = "6"
While this works it increases the build time of the website by a factor of 10 (from 1 minute to 10 minutes).
Is there a reason why the build time increases that drastically? Or is there a better way to remove the deprecated field and still have the normal performance?
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.139.0-dacef0df92a9a20072b4eaa42003e1a63ace8f41+extended linux/amd64 BuildDate=2024-11-18T16:17:45Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
yes
The text was updated successfully, but these errors were encountered:
While this works it increases the build time of the website by a factor of 10 (from 1 minute to 10 minutes).
This doesn't make sense that moving a config option should slow down the build, so there must be something else in play, which is impossible to tell without seeing the site source.
Thank you for the fast response!
Yes it is indeed strange, however i retested it once again. I build the site with paginate and it takes 70586 ms. Then i clean the repository and rebuild it with pagination.pagerSize and the build takes 747651 ms.
I actually spotted an additional oddity, which might give some insight into what happens. The number of paginator pages actually increases from 448 to 71680, which explains the longer build time, but i do not understand where the additional pages come from.
Our usage of the paginator is basically this code here:
I updated the hugo version for our website to 0.139.0 lately. The build now gives this warning:
Therfore i changed the entry in the config.toml from
to
While this works it increases the build time of the website by a factor of 10 (from 1 minute to 10 minutes).
Is there a reason why the build time increases that drastically? Or is there a better way to remove the deprecated field and still have the normal performance?
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes
The text was updated successfully, but these errors were encountered: