{%- if post.layout != post -%}

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

{%- endif -%}

{%- if post.layout == post -%}

{%- assign words = content | number_of_words -%}
{%- if words < 180 -%}
  less than 1-min read
{%- elsif words < 360 -%}
  1-min read
{%- else -%}
  {{ words | divided_by:180 }}-min read
{%- endif -%}

{%- endif -%}