forked from brooksbingham/theme-elegance
fix: highlight the currently selected page on the pagination
parent
9348891e8b
commit
1c4f82f2d4
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue