diff options
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/reading-time.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/_includes/reading-time.html b/_includes/reading-time.html index dd1960e..a867b66 100644 --- a/_includes/reading-time.html +++ b/_includes/reading-time.html @@ -2,6 +2,10 @@ {{- content | number_of_words | minus: 180 -}} {%- endcapture -%} +{%- if words contains '-' -%} +{{- '1 min read' | strip | normalize_whitespace | xml_escape -}} +{%- endif -%} + {%- unless words contains '-' -%} -{{- words | plus: 150 | divided_by: 150 | append: ' min read' | xml_escape -}} +{{- words | plus: 150 | divided_by: 150 | append: ' min read' | strip | normalize_whitespace | xml_escape -}} {%- endunless -%}
\ No newline at end of file |