diff --git a/databags/translate.ini b/databags/translate.ini index f4ec3fc..8a0fd2e 100644 --- a/databags/translate.ini +++ b/databags/translate.ini @@ -22,6 +22,7 @@ twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Mach bei uns mit created = Geschrieben von +read = Weiter lesen [en] close = close @@ -44,5 +45,5 @@ twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Join us created = Created by - +read = Continue reading diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 7cbad6b..409fc46 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -21,10 +21,11 @@

{{ post.title }}

-

{% if post.alt == 'en' %}Created by{% else %}Verfasst 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 %}

+

{% if bag('translate', post.alt, 'created') + %}{{ bag('translate', post.alt, 'created') }}{% else %}Verfasst 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 %}

{% endif %} @@ -36,7 +37,8 @@ {% if from_index == False %} {{ post.privatebody }} {% else %} -

{% if post.alt == 'en' %}continue reading{% else %}Weiter lesen{% endif %}

+

{% if bag('translate', post.alt, 'read') + %}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}

{{ post.title }} {% endif %}