{% capture words %} {{ postcontent | number_of_words | minus: 180 }} {% endcapture %} {% unless words contains '-' %} {{ words | plus: 180 | divided_by: 180 | append: ' mins read' }} {% endunless %}