gergelypolonkai-web-jekyll/_includes/read_time.html
Gergely Polonkai a0822eb344 Add read time script
This is a bugfix for the story layout
2018-09-21 17:48:36 +02:00

5 lines
205 B
HTML

<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>