{{# @name Pagination @desc The pagination component. Include in a result set using `{{ partial:statamic-civet-tools::components/pagination }}`. Auto adds pagination links to `statamic-civet-seo::snippets/_seo.antlers.html`. #}} {{ if paginate.total_pages > 1 }}
{{ paginate }} {{# Section that will be yielded in the of documents for search engines.. #}} {{ section:pagination }} {{ if prev_page }} {{ if current_page == 2 }} {{ else }} {{ /if }} {{ /if }} {{ if next_page }} {{ /if }} {{ /section:pagination }} {{# The actual pagination buttons. #}} {{ active_classes = active_classes ?? 'text-primary' }} {{ inactive_classes = inactive_classes ?? '' }} {{ location_classes = location_classes ?? '' }} {{ /paginate }}
{{ /if }}