0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 00:20:26 +03:00

Added space management

This commit is contained in:
2024-02-14 11:38:24 +04:00
parent 2db3902198
commit a3a95d7a9b
13 changed files with 51 additions and 51 deletions

View File

@ -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 %}
{%- unless words contains '-' -%}
{{- words | plus: 150 | divided_by: 150 | append: ' min read' -}}
{%- endunless -%}