From 381ac1fc3d98ecd0b6f5215c54f907eac6d2b873 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Feb 2020 09:26:16 -0300 Subject: html tidy wip --- _layouts/index.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to '_layouts/index.html') diff --git a/_layouts/index.html b/_layouts/index.html index 3c145d0..73b97ef 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -2,12 +2,14 @@ layout: default ---

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

- +{% if site.posts.size > 0 %} + +{% endif %} -- cgit v1.2.3 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