From 7e66676ebee2e1d74d2d17f389204837c8388527 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 21 Apr 2020 07:58:12 -0600 Subject: [PATCH] Closes #220: Format strings need 's' after the name --- templates/article.html | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/article.html b/templates/article.html index 2f12053..e4aaddd 100644 --- a/templates/article.html +++ b/templates/article.html @@ -31,7 +31,7 @@ category='%s'|format(SITEURL, article.category.url, article.category)|safe) }} {% if 'post_stats' in PLUGINS %} - • {{ _('%(minutes) min read', minutes=article.stats['read_mins']) }} + • {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }} {% endif %}

diff --git a/templates/index.html b/templates/index.html index 6a7ee71..f61d79c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,7 +29,7 @@ {% endif %} {% if 'post_stats' in PLUGINS %} - • {{ _('%(minutes) min read', minutes=article.stats['read_mins']) }} + • {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }} {% endif %}