{% if page.layout == "default" %} {{ post.date | date: "%B %d, %Y" }} {% assign words = post.content | strip_html | number_of_words %} {% else %} {{ page.date | date: "%B %d, %Y" }} {% assign words = content | strip_html | number_of_words %} {% endif %} {% assign absolute = words | divided_by: 200.0 %} {% assign rounded = words | divided_by: 200 %} {% assign diff = absolute | minus: rounded %} {% if diff >= 0.5 %} {% assign minutes = rounded + 1 %} {% else %} {% assign minutes = rounded %} {% endif %} · {{ minutes }} minute read