aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html22
1 files changed, 21 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index f0740fe..abc29c0 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -19,9 +19,29 @@
</p>
</article>
{% endfor %}
+ {% if paginator.previous or paginator.next %}
<nav>
- {% if paginator.previous %}<a href="{{ paginator.previous | safe }}">&#60; Previous</a> {% endif %}{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next &#62;</a>{% endif %}
+ <div>{% if paginator.previous %}<a href="{{ paginator.previous | safe }}">&#60; Previous</a> {% endif %} </div>
+ <div>
+ <ul>
+ {% for pager in range(start=1, end=paginator.number_pagers+1) %}
+ <li>
+ {% if pager == 1 %}
+ <a class="pag {% if paginator.current_index == pager %}cnav{% endif %}" href='{{ get_url(path="/", trailing_slash=true) }}'>
+ {{pager}}
+ </a>
+ {% else %}
+ <a class="pag {% if paginator.current_index == pager %}cnav{% endif %}" href='{{ paginator.base_url }}{{pager}}'>
+ {{pager}}
+ </a>
+ {% endif -%}
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div>{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next &#62;</a>{% endif %} </div>
</nav>
+ {% endif -%}
</div>
{% set section_item = get_section(path="_index.md") %}
{% if config.extra.recent | default(value=true) %}