diff options
Diffstat (limited to '')
-rw-r--r-- | _layouts/index.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/_layouts/index.html b/_layouts/index.html index 2c44ece..5b45898 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,11 +1,13 @@ --- layout: default --- -<h1>Recent posts</h1> +<h1>{{ site.t.recent_posts[page.lang] }}</h1> <ul> {%- for post in site.posts -%} - <li> - <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: "%b %-d, %Y" }} - </li> + {% if post.lang == page.lang %} + <li> + <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: "%b %-d, %Y" }} + </li> + {% endif %} {%- endfor -%} </ul> |