2020-04-24 16:25:30 +02:00
|
|
|
<!--- "ReadTime on GitHub Jekyll" (c) 2020 Ruby Griffith Ramirez, MIT License -->
|
|
|
|
|
|
|
|
{% assign ReadTime = page.content | strip_html | number_of_words %}
|
|
|
|
{% assign calcReadTime = ReadTime | float %}
|
|
|
|
{% assign finalReadTime = calcReadTime | divided_by:200 | round: 2 %}
|
|
|
|
{% assign number = finalReadTime | round %}
|
2020-05-02 08:10:20 +02:00
|
|
|
{% if number >= 1 %}
|
|
|
|
{% assign yesReadTime = number | append: " minute read" %}
|
2020-09-13 00:30:43 +02:00
|
|
|
<span class="post-meta"><span class="d-none d-md-inline middot">·</span> {{ yesReadTime }}</span>
|
2020-05-02 08:10:20 +02:00
|
|
|
{% elsif number < 1 %}
|
|
|
|
{% assign minReadTime = '< 1 minute read' %}
|
2020-09-13 00:30:43 +02:00
|
|
|
<span class="post-meta"><span class="d-none d-md-inline middot">·</span> {{ minReadTime }}</span>
|
2020-05-02 08:10:20 +02:00
|
|
|
{% else %}
|
|
|
|
{% assign nilReadTime = number | replace:'0',' ' %}
|
|
|
|
{{ nilReadTime }}
|
|
|
|
{% endif %}
|