diff --git a/themes/openAV-Luppp/templates/index.html b/themes/openAV-Luppp/templates/index.html index 3be2f39..798d387 100644 --- a/themes/openAV-Luppp/templates/index.html +++ b/themes/openAV-Luppp/templates/index.html @@ -26,6 +26,9 @@ {% endfor %} + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} diff --git a/themes/openAV-Luppp/templates/pagination.html b/themes/openAV-Luppp/templates/pagination.html new file mode 100644 index 0000000..ed84c47 --- /dev/null +++ b/themes/openAV-Luppp/templates/pagination.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +

+ {% if articles_page.has_previous() %} + « + {% endif %} + Page {{ articles_page.number }} | {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + {% endif %} +

+{% endif %} \ No newline at end of file