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:
parent
3b4596735e
commit
4e86673a9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue