Sha256: 6a346593ab2c2968e7ccdb40526f788c46d575cbcaa5b16feae50322d07dce38

Contents?: true

Size: 516 Bytes

Versions: 5

Compression:

Stored size: 516 Bytes

Contents

{%- assign words_per_minute = site.words_per_minute | default: 200 -%}
{%- assign min_read = site.data.text[site.locale].min_read | default: 'min read' -%}

{% if entry %}
  {% assign words = entry.content | strip_html | number_of_words %}
{% else %}
  {% assign words = page.content | strip_html | number_of_words %}
{% endif %}

<span class="read-time">
  {%- if words < words_per_minute -%}
    ~1 {{ min_read }}
  {%- else -%}
    {{ words | divided_by:words_per_minute }} {{ min_read }}
  {%- endif -%}
</span>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jekyll-theme-so-simple-libre-4.0.0 _includes/read-time.html
jekyll-theme-so-simple-3.2.0 _includes/read-time.html
jekyll-theme-so-simple-3.1.3 _includes/read-time.html
jekyll-theme-so-simple-3.1.2 _includes/read-time.html
jekyll-theme-so-simple-3.1.1 _includes/read-time.html