fix backpage link to index
authorM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Sat, 9 Sep 2017 00:32:27 +0000 (17:32 -0700)
committerM. Taylor Saotome-Westlake <ultimatelyuntruethought@gmail.com>
Sat, 9 Sep 2017 00:32:27 +0000 (17:32 -0700)
theme/templates/pagination.inc.html

index fbbf7c1..6793342 100644 (file)
@@ -1,9 +1,13 @@
 {% 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 }}">&laquo;</a>
+      {% if articles_page.previous_page_number() == 1 %}
+        {% if page_name == "index" %}
+          <a href="{{ SITEURL }}/">&laquo;</a>
         {% else %}
+          <a href="{{ SITEURL }}/{{ page_name }}">&laquo;</a>
+        {% endif %}
+      {% else %}
           {% if page_name == "index" %}
             <a href="{{ SITEURL }}/page/{{ articles_page.previous_page_number() }}/">&laquo;</a>
           {% else %}