fix: highlight the currently selected page on the pagination

pagebuilder
Dinesh Salunke 2023-12-05 12:17:42 +05:30
parent 9348891e8b
commit 1c4f82f2d4
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
{if $pagination.should_be_displayed} {if $pagination.should_be_displayed}
<ul class="flex gap-4"> <ul class="flex gap-4">
{foreach from=$pagination.pages item="page"} {foreach from=$pagination.pages item="page"}
<li {if $page.current} class="current" {/if}> <li {if $page.current} class="current font-bold" {/if}>
<a <a
rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}" rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}"
href="{$page.url}" href="{$page.url}"