summaryrefslogtreecommitdiffstats
path: root/blog/_includes/news.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/_includes/news.html')
-rw-r--r--blog/_includes/news.html3
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 %}