diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/home.html | 4 | ||||
-rw-r--r-- | _layouts/postlist.html | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/_layouts/home.html b/_layouts/home.html index 675c4da..f5ed43d 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -15,7 +15,9 @@ layout: default {%- for post in site.posts -%} <li> {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} - <span class="post-meta">{{ post.date | date: date_format }}</span> + <span class="post-meta">{{ post.date | date: date_format }} + {%- if post.lang == 'de' %} <img src='/assets/de.png' alt='german flag'/>{%- endif -%} + </span> <div lang="{{ post.lang | default: site.lang | default: "en" }}"> <h3> <a class="post-link" href="{{ post.url | relative_url }}"> diff --git a/_layouts/postlist.html b/_layouts/postlist.html index 9e679a7..67a1d48 100644 --- a/_layouts/postlist.html +++ b/_layouts/postlist.html @@ -26,6 +26,7 @@ layout: default <li> {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} <span class="post-meta">{{ post.date | date: date_format }}</span> + {%- if post.lang == 'de' %} <img src='/assets/de.png' alt='german flag'/>{%- endif -%} <div lang="{{ post.lang | default: site.lang | default: "en" }}"> <h3> <a class="post-link" href="{{ post.url | relative_url }}"> |