Add reading time to archive layout and include icon

This commit is contained in:
Michael Rose
2016-03-22 22:28:12 -04:00
parent bf4bf6ed82
commit f029ce6e25
4 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
{% assign words = page.content | strip_html | number_of_words %}
{% if post.read_time %}
{% assign words = post.content | strip_html | number_of_words %}
{% elsif page.read_time %}
{% assign words = page.content | strip_html | number_of_words %}
{% endif %}
{% if words < 180 %}
{{ site.data.ui-text[site.locale].less_than }} 1 {{ site.data.ui-text[site.locale].minute_read }}