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:
@ -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 -%}
|
Reference in New Issue
Block a user