aboutsummaryrefslogtreecommitdiff
path: root/_includes/reading-time.html
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-02-14 10:38:24 +0300
committerValentin Popov <valentin@popov.link>2024-02-14 10:38:24 +0300
commita3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e (patch)
treed7ce3ba4bb4f30f6d592cf12e33b6a6331d843d2 /_includes/reading-time.html
parent2db390219832103ecbece1188c1964a4539e9020 (diff)
downloadpopov.link-a3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e.tar.xz
popov.link-a3a95d7a9b020f9aeb66e17cab16e957f5a7cb5e.zip
Added space management
Diffstat (limited to '_includes/reading-time.html')
-rw-r--r--_includes/reading-time.html12
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: '&nbsp;min read' }}
-{% endunless %} \ No newline at end of file
+{%- unless words contains '-' -%}
+{{- words | plus: 150 | divided_by: 150 | append: '&nbsp;min read' -}}
+{%- endunless -%} \ No newline at end of file