I’ve been working last 2 months on this site for a local financial online magazine in my country.
It’s almost done, but there is one piece I can’t figure out what is going on.
The site has multiple sections as you can see in the footer:
The problem is with the layout for lists, when I’m on each section I need to show most recent on that section plus the next pages for that section.
As you can see in this list template: hugo.revistagestion.ec/list.html at main · marceloandrader/hugo.revistagestion.ec · GitHub
when i request the first 20 from .RegularPagesRecursive the site works fine, each section has it’s own articles.
when I request all the pages from .RegularPagesRecursive it also works fine but the sections are too big because this site has an historical list of pages of about 24k articles, (the current github doesn’t have the whole content)
The issue arise when I try to do the (.Paginate .RegularPagesRecursive).Pages, then the site goes nuts, all sections have the same list of articles.
Not sure if I’m doing something wrong with the structure or hugo is not doing something correctly.
I tried to recreate the issue in another small site, but there it works (GitHub - marceloandrader/paginate-sections) in the url /sections/one it display the list of pages and the nested one. in /sections/two it display the articles of that section only. (Expected result)