---
layout: core
---
{%- include strings.html -%}
{%- assign date_iso = page.date | date: "%Y-%m-%d" -%}
{%- assign date_formatted = page.date | date_to_string -%}
{%- assign upper_minutes = page.content | number_of_words | divided_by: 160 -%}
{%- assign lower_minutes = page.content | number_of_words | divided_by: 180 -%}
{%- capture ttr -%}
{%- if upper_minutes == 0 -%}
{{ x_minute_read | replace: "$x$", "<1" }}
{%- elsif upper_minutes == lower_minutes -%}
{%- capture val -%}~{{ upper_minutes }}{%- endcapture -%}
{{ x_minute_read | replace: "$x$", val }}
{%- else -%}
{%- capture val -%}{{ lower_minutes }}-{{ upper_minutes }}{%- endcapture -%}
{{ x_minute_read | replace: "$x$", val }}
{%- endif -%}
{%- endcapture -%}
{%- capture meta -%}
— {{ ttr }}
{%- endcapture -%}