From bdfc3da94fa8d16873c427bd4b2c1a1d054a9183 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 14 Feb 2020 22:56:47 -0300 Subject: Only list posts for languages there are available --- _layouts/index.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to '_layouts/index.html') diff --git a/_layouts/index.html b/_layouts/index.html index 73b97ef..037e0e3 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -2,14 +2,13 @@ layout: default ---

{{ site.t.recent_posts[page.lang] }}

-{% if site.posts.size > 0 %} +{% assign lposts=site.posts | where:"lang", page.lang | sort: 'date' %} +{% if lposts.size > 0 %} {% endif %} -- cgit v1.2.3