{% if include.post.layout != post %} {% assign words = include.post.content | strip_html | number_of_words %} {% if words < 180 %} less than 1 minute read {% elsif words < 360 %} 1 minute read {% else %} {{ words | divided_by:180 }} minute read {% endif %} {% endif %} {% if include.post.layout == post %} {% assign words = content | number_of_words %} {% if words < 180 %} less than 1 minute read {% elsif words < 360 %} 1 minute read {% else %} {{ words | divided_by:180 }} minute read {% endif %} {% endif %}