popov.link/_includes/reading-time.html

7 lines
199 B
HTML
Raw Normal View History

2024-02-14 02:38:59 +03:00
{% capture words %}
{{ content | number_of_words | minus: 180 }}
{% endcapture %}
{% unless words contains '-' %}
{{ words | plus: 150 | divided_by: 150 | append: ' min read' }}
{% endunless %}