diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-04 20:26:41 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-04 20:26:41 +0200 |
commit | bf155ad6e5459d01c65456543a4fea6bc1134875 (patch) | |
tree | 9eff4c6ec1f1426d35ef0b656833922e009b98a1 /blog/_includes | |
parent | d51abbfe635b60ac97c698a62add330821c21645 (diff) | |
download | norsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.tar.gz norsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.tar.bz2 norsk-urskog-main-bf155ad6e5459d01c65456543a4fea6bc1134875.zip |
Use new pagination module to add pagination.
Diffstat (limited to 'blog/_includes')
-rw-r--r-- | blog/_includes/news.html | 3 |
1 files changed, 1 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 %} |