From a3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 14 Feb 2024 11:38:24 +0400 Subject: Added space management --- _includes/reading-time.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '_includes/reading-time.html') 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 -- cgit v1.2.3