Merge pull request #221 from sumnerevans/fix-post-stats-format-strings

Bug fix: Closes #220: Format strings need 's' after the name
This commit is contained in:
Alexandre Vicenzi 2020-04-21 17:28:47 +02:00 committed by GitHub
commit db7f73bec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
{% if 'post_stats' in PLUGINS %}
&#8226; {{ _('%(minutes) min read', minutes=article.stats['read_mins']) }}
&#8226; {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }}
{% endif %}
</p>
</header>

View file

@ -29,7 +29,7 @@
{% endif %}
{% if 'post_stats' in PLUGINS %}
&#8226; {{ _('%(minutes) min read', minutes=article.stats['read_mins']) }}
&#8226; {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }}
{% endif %}
</p>
</header>