Sha256: e1c51be98e7919de8346807af1665997f3026658b0e2a916d73c45dbb8e70acf
Contents?: true
Size: 978 Bytes
Versions: 57
Compression:
Stored size: 978 Bytes
Contents
<!-- Calculate the post's reading time, and display the word count in tooltip --> {% assign words = include.content | strip_html | number_of_words: 'auto' %} <!-- words per minute --> {% assign wpm = 180 %} {% assign min_time = 1 %} {% assign read_time = words | divided_by: wpm %} {% unless read_time > 0 %} {% assign read_time = min_time %} {% endunless %} {% capture read_prompt %} {{- site.data.locales[include.lang].post.read_time.prompt -}} {% endcapture %} <!-- return element --> <span class="readtime" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ words }} {{ site.data.locales[include.lang].post.words }}" > <em> {{- read_time -}} {{ ' ' }} {{- site.data.locales[include.lang].post.read_time.unit -}} </em> {%- if include.prompt -%} {%- assign _prompt_words = read_prompt | number_of_words: 'auto' -%} {%- unless _prompt_words > 1 -%}{{ ' ' }}{%- endunless -%} {{ read_prompt }} {%- endif -%} </span>
Version data entries
57 entries across 57 versions & 6 rubygems