From f42e64968ffd0e4adfe67d484dc2768186269fb1 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 24 Aug 2015 16:02:46 +0200 Subject: Add pagination for index page. --- blog/index.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'blog/index.html') diff --git a/blog/index.html b/blog/index.html index 512e009..aaf8fbd 100644 --- a/blog/index.html +++ b/blog/index.html @@ -8,7 +8,7 @@ hidden: true

{% t home.latest_news %}

- {% for p in site.posts limit: 5 %} + {% for p in paginator.posts %}
{{ p.date | date_to_string }} @@ -21,7 +21,6 @@ hidden: true
{% endfor %} - {% t home.older_news %} {% if site.links %} @@ -29,3 +28,18 @@ hidden: true

{% t home.links %}

{% endif %} + + + -- cgit v1.2.3