hey guys,
I have pagination working nicely on my blog.
But I would like to have a list of page numbers instead of the standard next/previous buttons.
How would be this be possible with kirby?
My current code is
<?php if($articles->pagination()->hasPages()): ?>
<nav class="pagination">
<?php if($articles->pagination()->hasNextPage()): ?>
<a class="next" href="<?php echo $articles->pagination()->nextPageURL() ?>">Next Page ‹ </a>
<?php endif ?>
<?php if($articles->pagination()->hasPrevPage()): ?>
<a class="prev" href="<?php echo $articles->pagination()->prevPageURL() ?>">Previous Page ›</a>
<?php endif ?>
</nav>
<?php endif ?>
Thank you for any help!