Displaying Pagination with on Page Twig and HTML


My site’s homepage runs the following collection to display recent posts. How do I display the option to cycle forward and backward through the collection of recent posts?

Do I need a different Twig function that makes a call to the collection?

{% set options = { items: {'@taxonomy.category': 'post'}, 'limit': 9, 'order': {'by': 'date', 'dir': 'desc'}, 'pagination': true } %}
{% set recent_posts = page.collection(options) %}

    {% for p in recent_posts %}
    <li class="recent-posts" style="list-style: none"><strong><a href="{{ p.url }}">{{ p.title }}</a></strong><br>
        <span>{{ p.date|date("D, F d, Y") }} T{{ p.date|date("H:i:s A T") }}</span></li>
    {% endfor %}