diff --git a/databags/translate.ini b/databags/translate.ini index 650f0c7..f4ec3fc 100644 --- a/databags/translate.ini +++ b/databags/translate.ini @@ -21,7 +21,7 @@ webirc = webirc.hackint.org twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Mach bei uns mit - +created = Geschrieben von [en] close = close @@ -43,6 +43,6 @@ webirc = webirc.hackint.org twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Join us - +created = Created by diff --git a/templates/macros/blog.html b/templates/macros/blog.html index c3e244b..7cbad6b 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -9,8 +9,8 @@ {% else %}

{{ post.title }}

{% endif %} -

{% if post.alt == 'en' %}Created by{% else - %}Geschrieben von{% endif %} {% +

{% if bag('translate', post.alt, 'created') + %}{{ bag('translate', post.alt, 'created') }}{% else %}Geschrieben von{% endif %} {% if post.twitter_handle %}{{ post.author or post.twitter_handle }}{% else %}{{ post.author }}{% endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}