aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
authorSrinivas Narayanan <srininara@gmail.com>2019-11-02 09:05:07 +0530
committerSrinivas Narayanan <srininara@gmail.com>2019-11-02 09:05:07 +0530
commit67f61789a9c50e8a6f895da9ac9c532e2eb650cb (patch)
tree24b373a35accc5ea8494fc5bb84cb95395669a1d /pelican-bootstrap3
parent565dc8959ad2573c4a9245eaaec73916c782f6d9 (diff)
downloadpelican-themes-67f61789a9c50e8a6f895da9ac9c532e2eb650cb.tar.gz
feat(pelican-bootstrap3): added readtime support
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/templates/includes/article_info.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/article_info.html b/pelican-bootstrap3/templates/includes/article_info.html
index 1cb85d5..8ff2d12 100644
--- a/pelican-bootstrap3/templates/includes/article_info.html
+++ b/pelican-bootstrap3/templates/includes/article_info.html
@@ -1,4 +1,7 @@
<footer class="post-info">
+ {% if article.readtime %}
+ <span class="label label-success">{{article.readtime.minutes}} min. read</span>
+ {% endif %}
<span class="label label-default">Date</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }}</time>