Hello, I’d like to inquire.
I made a job board using ‘pagination’. You can see 10 posts on page 1 on the bulletin board.
(link. https://innovate.dy.co.kr/kr/recruiting)
There are no posts on this link yet.
But the page numbers of the bulletin board are ‘1’ and ‘0’.
Can I delete “0”? The client requested deletion because it looked like an error, is it possible?
I need help…!
<?php $pagination = $list->pagination() ?>
<nav class="numberset">
<ul>
<?php if ($pagination->hasPrevPage()): ?>
<li>
<a href="<?= $pagination->prevPageURL() ?>"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.84 9.17"><polygon points="0 4.58 6.84 0 6.84 9.17 0 4.58"/></svg></a>
</li>
<?php else: ?>
<li>
<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.84 9.17"><polygon points="0 4.58 6.84 0 6.84 9.17 0 4.58"/></svg></span>
</li>
<?php endif ?>
<?php foreach ($pagination->range(10) as $r): ?>
<li>
<a<?= $pagination->page() === $r ? ' aria-current="page"' : '' ?> href="<?= $pagination->pageURL($r) ?>">
<?= $r ?>
</a>
</li>
<?php endforeach ?>
<?php if ($pagination->hasNextPage()): ?>
<li>
<a href="<?= $pagination->nextPageURL() ?>"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.84 9.17"><polygon points="6.84 4.58 0 9.17 0 0 6.84 4.58"/></svg></a>
</li>
<?php else: ?>
<li>
<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.84 9.17"><polygon points="6.84 4.58 0 9.17 0 0 6.84 4.58"/></svg></span>
</li>
<?php endif ?>
</ul>
</nav>