{% if DEFAULT_PAGINATION %}
-<div class="pagination">
+ <div class="pagination">
{% if articles_page.has_previous() %}
- {% if articles_page.previous_page_number() == 1 %}
- <a href="{{ SITEURL }}/{{ page_name }}">«</a>
+ {% if articles_page.previous_page_number() == 1 %}
+ {% if page_name == "index" %}
+ <a href="{{ SITEURL }}/">«</a>
{% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}">«</a>
+ {% endif %}
+ {% else %}
{% if page_name == "index" %}
<a href="{{ SITEURL }}/page/{{ articles_page.previous_page_number() }}/">«</a>
{% else %}