VERSION 2.0

This commit is contained in:
WillJeynes
2024-05-26 22:01:24 +01:00
parent 3c7ad1f3a2
commit 2dbdc59345
255 changed files with 9100 additions and 1309 deletions
+13
View File
@@ -0,0 +1,13 @@
{% 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 %}
~1 {{ site.data.theme.t.min_read | default: 'min read' }}
{% else %}
{{ words | divided_by:words_per_minute }} {{ site.data.theme.t.min_read | default: 'min read' }}
{% endif %}