Ronalds Vilciņš


Jekyll reading time without plugins

This script calculates the reading time based on a configurable reading speed (180 words per minutes by default).

<p> 
  {% assign words = content | number_of_words %}
  {% if words < 360 %}
    1 min 
  {% else %}
    {{ words | divided_by:180 }} mins
  {% endif %}
  read
</p>



This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.