I’m trying to recreate my Hugo website in Zola. my website is structured in a way that the articles section has a list of articles with pagination component (that’s easy) but I want to article page itself to show the pagination from the article page, so the website layout stays the same. this is the image of the layout:
I want to generate the article list pagination inside the article page (with next and prev buttons and list of articles).
is there a way to do it?
in Hugo I can use the {{ with }} to change the context of the specific part of the template. but in Zola I always get an error that there is no paginator.
I’m not entirely sure I’ve correctly understood your goals; a link to your Hugo theme demo would be useful.
Do you want a section in your articles that has something like:
← Previous article | Next article →
?
If that’s it, I added this functionality to my theme recently. You can see the code, a screenshot and context on the PR. The relevant part of the code: