summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-10-04 20:26:41 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-10-04 20:26:41 +0200
commitbf155ad6e5459d01c65456543a4fea6bc1134875 (patch)
tree9eff4c6ec1f1426d35ef0b656833922e009b98a1
parentd51abbfe635b60ac97c698a62add330821c21645 (diff)
downloadnorsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.tar.gz
norsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.tar.bz2
norsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.zip
Use new pagination module to add pagination.
-rw-r--r--blog/_includes/news.html3
-rw-r--r--blog/en/index.md2
-rw-r--r--blog/index.md2
3 files changed, 5 insertions, 2 deletions
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 @@
<section id="news">
<h2>Nyheter</h2>
- {% 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?**