diff options
author | EuAndreh <eu@euandre.org> | 2020-02-15 00:39:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-15 00:39:14 -0300 |
commit | 4cbc208f49a12849216aeb6b344b345d8df52b03 (patch) | |
tree | e775574f15c0051b7b0a4af800d6155f66116398 /_layouts/index.html | |
parent | Merge branch 'master' into wip (diff) | |
parent | Fix navigation bar links to Atom feeds (diff) | |
download | euandre.org-4cbc208f49a12849216aeb6b344b345d8df52b03.tar.gz euandre.org-4cbc208f49a12849216aeb6b344b345d8df52b03.tar.xz |
Merge branch 'master' into wip
Diffstat (limited to '_layouts/index.html')
-rw-r--r-- | _layouts/index.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/_layouts/index.html b/_layouts/index.html index 3c145d0..037e0e3 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -2,12 +2,13 @@ layout: default --- <h1>{{ site.t.recent_posts[page.lang] }}</h1> -<ul> - {%- for post in site.posts -%} - {% if post.lang == page.lang %} +{% assign lposts=site.posts | where:"lang", page.lang | sort: 'date' %} +{% if lposts.size > 0 %} + <ul> + {%- for post in lposts -%} <li> <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }} </li> - {% endif %} - {%- endfor -%} -</ul> + {%- endfor -%} + </ul> +{% endif %} |