X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=e788b588f88c2ac681fba1b84c4c3286ef6201df;hb=200c758ff411c013391d4c84bce24e0df9cfbac1;hp=b819d801e608144441f6b0a789a97cdf5807a2dc;hpb=5425b0dd82863d548f49dcbd81636ed8dabd7866;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index b819d801..e788b588 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -40,17 +40,16 @@ {% for entry in entries %}

{{ entry.title|raw }}

-
{{ entry.date }}
- {% if entry.reading_time > 0 %} -
{% trans "estimated reading time :" %} {{ entry.reading_time }} min
+ {% if entry.content| getReadingTime > 0 %} +
{% trans "estimated reading time :" %} {{ entry.content| getReadingTime }} min
{% else %} -
{% trans "estimated reading time :" %} < 1 min
+
{% trans "estimated reading time :" %} < 1 min
{% endif %}

{{ entry.content|striptags|slice(0, 300) }}...

@@ -62,9 +61,9 @@ {% if search_term is defined %}{% trans %} Apply the tag {{ search_term }} to this search {% endtrans %}{% endif %} - {% if tag %}{% trans "Download the articles from this tag in an epub" %} - {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} - {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} {% endif %} {% endblock %}