In a blog listing page we have the built-in support for pagination by using the `contents` global variable.
However, this olnly supports one tag at a time using the URL param. I want to implement a multiple tags filtering, which is supported by the hubl function blog_recent_tag_posts. But checking the official documentation for this function I dont see any params to pass to the function which would paginate it.
It would also not be ideal to return ALL blog posts (I’m not sure if it’s even possible) and then calculate the pagination virtually.
How do I add pagination to the blog_recent_tag_posts?
This is my current implementation so far:
{% set incoming_tags = request.query_dict.tags|split(“,”) %}
{% set all_tags = blog_tags(group.id) %}
{% set filtered_posts = blog_recent_tag_posts(“default”, incoming_tags, 10, “OR”) %}