Sha256: bc5a7566782791048c41bae2f35919a4a318466e0679bcc5a84d2b93edc966bb

Contents?: true

Size: 800 Bytes

Versions: 4

Compression:

Stored size: 800 Bytes

Contents

<!--- "ReadTime on GitHub Jekyll" (c) 2020 Ruby Griffith Ramirez, MIT License -->

{% assign ReadTime = page.content | strip_html | number_of_words %}
{% assign calcReadTime = ReadTime | float %}
{% assign finalReadTime = calcReadTime | divided_by:200 | round: 2 %}
{% assign number = finalReadTime | round %}
{% if number >= 1 %}
  {% assign yesReadTime = number | append: " minute read" %}
  <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ yesReadTime }}</span>
{% elsif number < 1 %}
  {% assign minReadTime = '&lt; 1 minute read' %}
  <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ minReadTime }}</span>
{% else %}
  {% assign nilReadTime = number | replace:'0',' ' %}
  {{ nilReadTime }}
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beautiful-jekyll-theme-4.1.0 _includes/readtime.html
beautiful-jekyll-theme-4.0.1 _includes/readtime.html
beautiful-jekyll-theme-4.0.0 _includes/readtime.html
beautiful-jekyll-theme-3.0.0 _includes/readtime.html