mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2024-12-25 07:09:33 -05:00
15 lines
706 B
HTML
15 lines
706 B
HTML
|
{% 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 < words_per_minute %}
|
||
|
{{ 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 == words_per_minute %}
|
||
|
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 %}
|