
- In index, h1 tag are replaced with h2 tags - Remove orphan span tag for the pagination HTML - Remove all unnecessary trailing slash for tag like link - Remove stary img end tag for banner - Use configuration value for the lang attribute on the html tag - in article, make title be h2 tags instead of h1 tags and change CSS rules to match
35 lines
2 KiB
HTML
35 lines
2 KiB
HTML
<div class="pagination-wrapper content-subhead">
|
|
{% if DEFAULT_PAGINATION %}
|
|
{% set first_page = articles_paginator.page(1) %}
|
|
{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
|
|
{% if articles_paginator.num_pages > 1 %}
|
|
<nav class="pagination">
|
|
<ul>
|
|
{% set previous_previous_page = articles_page.number - 2 %}
|
|
{% set previous_page = articles_page.number - 1 %}
|
|
{% if articles_page.has_previous() %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ first_page.url }}">Début</a></li>
|
|
{% endif %}
|
|
{% if previous_previous_page > 0 %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ articles_paginator.page(previous_previous_page).url }}">{{ previous_previous_page }}</a></li>
|
|
{% endif %}
|
|
{% if previous_page > 0 %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ articles_paginator.page(previous_page).url }}">{{ previous_page }}</a></li>
|
|
{% endif %}
|
|
<li><a class="pagination" aria-current="page" href="{{ SITEURL }}/{{ articles_paginator.page(articles_page.number).url }}">{{ articles_page.number }}</a></li>
|
|
{% set next_next_page = articles_page.number + 2 %}
|
|
{% set next_page = articles_page.number + 1 %}
|
|
{% if next_page <= articles_paginator.num_pages %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ articles_paginator.page(next_page).url }}">{{ next_page }}</a></li>
|
|
{% endif %}
|
|
{% if next_next_page <= articles_paginator.num_pages %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ articles_paginator.page(next_next_page).url }}">{{ next_next_page }}</a></li>
|
|
{% endif %}
|
|
{% if articles_page.has_next() %}
|
|
<li><a class="pagination" href="{{ SITEURL }}/{{ last_page.url }}">Fin</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|