diff options
Diffstat (limited to '_includes/reading-time.html')
-rw-r--r-- | _includes/reading-time.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/_includes/reading-time.html b/_includes/reading-time.html index 2515099..de71601 100644 --- a/_includes/reading-time.html +++ b/_includes/reading-time.html @@ -1,7 +1,7 @@ -{% capture words %} -{{ content | number_of_words | minus: 180 }} -{% endcapture %} +{%- capture words -%} +{{- content | number_of_words | minus: 180 -}} +{%- endcapture -%} -{% unless words contains '-' %} -{{ words | plus: 150 | divided_by: 150 | append: ' min read' }} -{% endunless %}
\ No newline at end of file +{%- unless words contains '-' -%} +{{- words | plus: 150 | divided_by: 150 | append: ' min read' -}} +{%- endunless -%}
\ No newline at end of file |