{% if post.layout != post %}

{% assign words = 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 post.layout == post %}

{% assign words = 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 %}