Sha256: cf85d45486b88377d6062c7e52027816e59e7c057b30ecb1011f036ada603290

Contents?: true

Size: 693 Bytes

Versions: 4

Compression:

Stored size: 693 Bytes

Contents

{% assign words_per_minute = site.words_per_minute | default: 200 %}

{% if post.read_time %}
  {% assign words = post.content | strip_html | number_of_words %}
{% elsif page.read_time %}
  {% assign words = page.content | strip_html | number_of_words %}
{% endif %}

{% if words < 180 %}
  {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
{% elsif words < 360 %}
  1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
{% else %}
  {{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minimal-mistakes-jekyll-4.1.0 _includes/read-time.html
minimal-mistakes-jekyll-4.0.10 _includes/read-time.html
minimal-mistakes-jekyll-4.0.9 _includes/read-time.html
minimal-mistakes-jekyll-4.0.8 _includes/read-time.html