Somtimes producing proper HTML is good; #635

This commit is contained in:
Quantum 2017-12-08 20:40:00 -05:00
parent 53cccf5c99
commit 6c49623bac

View File

@ -13,14 +13,13 @@
{% if not page %}
<li class="disabled-page"><span>...</span></li>
{% else %}
<li{% if page == page_obj.number %} class="active-page"{% endif %}>
<a href="
<li{% if page == page_obj.number %} class="active-page"{% endif %}><a href="
{%- if page == 1 and first_page_href != None -%}
{{ first_page_href }}
{%- else -%}
{{ page_prefix or '' }}{{ page }}{{ page_suffix or '' }}
{%- endif -%}
">{{ page }}</a>
">{{ page }}</a></li>
{% endif %}
{% endfor %}