Add read time script
This is a bugfix for the story layout
This commit is contained in:
4
_includes/read_time.html
Normal file
4
_includes/read_time.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<span class="reading time" title="Estimated reading time">
|
||||
{% assign words = content | number_of_words %}
|
||||
{% if words < 360 %}1 minute{% else %}{{ words | divided_by:180 }} minutes{% endif %} read
|
||||
</span>
|
Reference in New Issue
Block a user