Pagination Deprecated Error

I’m wondering how to fix the following error:

Error Text
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.
hugo: collected modules in 1921 ms Start building sites … 
hugo v0.134.1-2f89169baa87a9db47e288b60705f4e99e21a945+extended 
linux/amd64 BuildDate=2024-09-05T10:17:50Z
VendorInfo=snap:0.134.1
ERROR deprecated: .Site.DisqusShortname was deprecated
in Hugo v0.120.0 and will be removed in Hugo 0.135.0. 
Use .Site.Config.Services.Disqus.Shortname instead.
WARN  calling IsSet with unsupported type "invalid" (<nil>)
will always return false. ERROR render of "page" failed:
"$theme/layouts/_default/single.html:35:65":
execute of template failed: template: _default/single.html:35:65: 
executing "_default/single.html" at <.Site.Params.date_format>: 
invalid value; expected string
Total in 2102 ms
Error: error building site: render: failed to render pages:
render of "section" failed:
"$theme/layouts/_default/list.html:59:75": 
execute of template failed: template: _default/list.html:59:75:
executing "_default/list.html" at <.Site.Params.date_format>:
invalid value; expected string

I’m using the Universal theme, running Hugo 0.134.1 on a Linode instance runnig Debian bullseye 11.10.

Technically speaking “just” replace all calls to .Site.DisqusShortname with .Site.Config.Services.Disqus.Shortname.

But it might be that your issue is not with Disqus, but with a template that uses .Site.Params.date_format wrong.

How do your _default/list.html and _default/single.html look like?

As far as the warning is concerned, this is easy to fix. The config.toml file contains the line “paginate = 10” (hugo-universal-theme/exampleSite/config.toml at master · devcows/hugo-universal-theme · GitHub). This setting will no longer work in the foreseeable future. Instead, you must use pagerSize (Pagination | Hugo).

At Auf pagerSize umgestellt, da paginate veraltet ist und entfernt wird · 0e56125f9d - Fryboyter/fryboyter.de - Codeberg.org you will find a corresponding change on my part as an example.