diff --git a/templates/article.html b/templates/article.html index e4aaddd..44d3fe1 100644 --- a/templates/article.html +++ b/templates/article.html @@ -30,7 +30,7 @@ when=article.locale_date, category='%s'|format(SITEURL, article.category.url, article.category)|safe) }} - {% if 'post_stats' in PLUGINS %} + {% if PLUGINS and 'post_stats' in PLUGINS %} • {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }} {% endif %}

diff --git a/templates/base.html b/templates/base.html index b3f208f..10c5400 100644 --- a/templates/base.html +++ b/templates/base.html @@ -69,7 +69,7 @@ href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css"> {% endif %} - {% if 'tipue_search' in PLUGINS %} + {% if PLUGINS and 'tipue_search' in PLUGINS %} @@ -156,7 +156,7 @@ {% if SITESUBTITLE %}

{{ SITESUBTITLE }}

{% endif %} - {% if 'tipue_search' in PLUGINS %} + {% if PLUGINS and 'tipue_search' in PLUGINS %} @@ -280,7 +280,7 @@ {% include 'partial/github.html' %} {% endif %} - {% if 'tipue_search' in PLUGINS %} + {% if PLUGINS and 'tipue_search' in PLUGINS %}