Fixed current pagination classes.

Logic needs to be removed from the neighboring anchor, but I haven't
decided how exactly I would rather do this.
This commit is contained in:
Benjamin A. Shelton 2025-12-15 10:32:46 -07:00
commit 4e86673a9a
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -92,7 +92,7 @@ pagination:
{% endif -%} {% endif -%}
{% for entry in pagination.pages %} {% for entry in pagination.pages %}
{% if page.url == pagination.hrefs[loop.index0] %} {% if page.url == pagination.hrefs[loop.index0] %}
<li>{{ loop.index }}</li> <li class="current">{{ loop.index }}</li>
{% else %} {% else %}
<li><a href="/sundays{{ pagination.hrefs[ loop.index0 ] }}"{% if page.url == pagination.hrefs[ loop.index0 ] %} class="current"{% endif %}>{{ loop.index }}</a></li> <li><a href="/sundays{{ pagination.hrefs[ loop.index0 ] }}"{% if page.url == pagination.hrefs[ loop.index0 ] %} class="current"{% endif %}>{{ loop.index }}</a></li>
{% endif %} {% endif %}