diff options
Diffstat (limited to 'blog/_includes/news.html')
-rw-r--r-- | blog/_includes/news.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blog/_includes/news.html b/blog/_includes/news.html index f7b893d..d08c45f 100644 --- a/blog/_includes/news.html +++ b/blog/_includes/news.html @@ -1,6 +1,7 @@ <section id="news"> <h2>Nyheter</h2> - {% for p in site.posts limit: 5 %} + {% assign posts_for_lang = site.posts | where_exp: "p","p.lang == page.lang" %} + {% for p in posts_for_lang limit: 5 %} {% if p != page %} {% if include.sidebar %} {% include post-excerpt.html post=p sidebar=true %} |