Added estimated reading time and icon for the date

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2018-01-01 14:32:47 +01:00
parent f3cace4aef
commit ef637bdb70
5 changed files with 32 additions and 3 deletions

View File

@ -0,0 +1,8 @@
<span class="far fa-clock"></span>
{% assign words = include.content | number_of_words %}
{% if words < 180 %}
less than 1 minute read
{% else %}
{{ words | divided_by:180 }} minute read
{% endif %}