summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2024-12-10 18:41:09 +0100
committeruvok cheetah2024-12-10 18:41:09 +0100
commit15794ae6897e6f64679901ed703c74c1d3485c39 (patch)
tree0bbf75f4bbe5cf63e30b0cd6d7c361169d59684c
parentcbe35821d7d1c436c96b3a7805faed82688bc06c (diff)
Add German flag / marking
-rw-r--r--_layouts/home.html4
-rw-r--r--_layouts/postlist.html1
-rw-r--r--assets/de.pngbin0 -> 282 bytes
3 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 }}">
diff --git a/assets/de.png b/assets/de.png
new file mode 100644
index 0000000..193738a
--- /dev/null
+++ b/assets/de.png
Binary files differ