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 +-- blog/en/index.md | 2 ++ blog/index.md | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'blog') 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 %} diff --git a/blog/en/index.md b/blog/en/index.md index 8ceeb63..06d3351 100644 --- a/blog/en/index.md +++ b/blog/en/index.md @@ -1,5 +1,7 @@ --- layout: homepage +paginate: 8 +paginate_onlykey: lang --- **Norsk Urskog** is a volunteer based project aiming to support and promote young Norwegian underground bands within the metal genre and this is done via its website, the social media and a CD sampler distributed at the [Inferno Metal Festival][1] in Oslo, Norway - and possibly at other festivals where Inferno is present. diff --git a/blog/index.md b/blog/index.md index 59844af..760134e 100644 --- a/blog/index.md +++ b/blog/index.md @@ -1,5 +1,7 @@ --- layout: homepage +paginate: 8 +paginate_onlykey: lang --- **Spiller du i et norsk metalband?** -- cgit v1.2.3