From bf155ad6e5459d01c65456543a4fea6bc1134875 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 4 Oct 2017 20:26:41 +0200 Subject: Use new pagination module to add pagination. --- blog/_includes/news.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'blog/_includes') diff --git a/blog/_includes/news.html b/blog/_includes/news.html index d08c45f..4c39be0 100644 --- a/blog/_includes/news.html +++ b/blog/_includes/news.html @@ -1,7 +1,6 @@

Nyheter

- {% assign posts_for_lang = site.posts | where_exp: "p","p.lang == page.lang" %} - {% for p in posts_for_lang limit: 5 %} + {% for p in page.pagination.posts %} {% if p != page %} {% if include.sidebar %} {% include post-excerpt.html post=p sidebar=true %} -- cgit v1.2.3