SalaMuseoGames/_includes/minutes-to-read.html

10 lines
243 B
HTML

{% assign words = content | number_of_words %}
{% if words < 360 %}
{% assign totalMinutes = 1 %}
{% else %}
{% assign totalMinutes = words | divided_by:180 %}
{% endif %}
{% assign minutesText = totalMinutes | append: ' min to read' %}