Added estimated reading time and icon for the date
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
8
_includes/reading-time.html
Normal file
8
_includes/reading-time.html
Normal 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 %}
|
||||
|
||||
Reference in New Issue
Block a user