Skip to content

Commit 34a8929

Browse files
committed
Skip read-time if it's a minute or less
I don't think the read-time is adding much value on short pages. The reader is likely able to make a better estimation how long it would take to read. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 91425c3 commit 34a8929

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

_includes/read_time.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{%- assign words = content | number_of_words -%}
2-
{%- if words < 360 -%}
3-
<p><em class="reading-time">Estimated reading time: 1 minute</em></p>
4-
{%- else -%}
2+
{%- if words >= 360 -%}
53
<p><em class="reading-time">Estimated reading time: {{ words | divided_by:180 }} minutes</em></p>
64
{%- endif -%}

0 commit comments

Comments
 (0)