Pagination broken

I upgraded from Hugo 0.29 to 0.45.

It has broken the pagination. Build output below. What change do I need to make to get it working? The example documentation is still the same as my pagination code.

On 0.29:
Built site for language en:
0 of 1 draft rendered
0 future content
0 expired content
41 regular pages created
92 other pages created
1 non-page files copied
58 paginator pages created
34 tags created
8 categories created

On 0.45: Paginator pages | 0

±-----------------±----+
Pages | 136
Paginator pages | 0
Non-page files | 1
Static files | 177
Processed images | 0
Aliases | 2
Sitemaps | 1
Cleaned | 0

Please share a link with the source code of your project.
If you cannot share then just add some dummy content.

It’s impossible to debug your issue otherwise.

I had the following in my config. The moment I took it out, pagination is working. But unfortunately, I now have default name for my rss feed - index.xml instead of feed.xml

The problem started from build 0.43. May be related to - Do not create paginator pages for the other output formats 43338c3a @bep #4890

// RSS stuff - rss is feed.xml instead of default index.html

[outputs]
home = [ “RSS”, “HTML”]
section = [ “RSS”, “HTML”]
taxonomy = [ “RSS”, “HTML”]
taxonomyTerm = [ “RSS”, “HTML”]
[outputFormats]
[outputFormats.RSS]
mediatype = “application/rss”
baseName = “feed”

The output formats order matter – and we should document it better. The first in the list is considered the main output format.

home = [ “HTML”, “RSS”]

Would work for you.

Confirmed it works now…thanks very much. Sometimes, little things like this take a long time to debug :slight_smile:

1 Like