summaryrefslogtreecommitdiff
path: root/_layouts/index.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-05 16:23:08 -0300
committerEuAndreh <eu@euandre.org>2020-02-05 16:23:08 -0300
commit847789edcf135f38b27f8f6ac3a85386037e4e38 (patch)
tree1dc86f4eb6894642d503d93530717773b3815b8b /_layouts/index.html
parentRemove spelling/ (diff)
downloadeuandre.org-847789edcf135f38b27f8f6ac3a85386037e4e38.tar.gz
euandre.org-847789edcf135f38b27f8f6ac3a85386037e4e38.tar.xz
Add manual support for multiple languages
Diffstat (limited to '_layouts/index.html')
-rw-r--r--_layouts/index.html10
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>