From e68f7cf6c7fadb1bceea955a4caf40954d9b024e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 14 Feb 2024 03:38:59 +0400 Subject: Moved actual template site --- _includes/reading-time.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _includes/reading-time.html (limited to '_includes/reading-time.html') diff --git a/_includes/reading-time.html b/_includes/reading-time.html new file mode 100644 index 0000000..2515099 --- /dev/null +++ b/_includes/reading-time.html @@ -0,0 +1,7 @@ +{% capture words %} +{{ content | number_of_words | minus: 180 }} +{% endcapture %} + +{% unless words contains '-' %} +{{ words | plus: 150 | divided_by: 150 | append: ' min read' }} +{% endunless %} \ No newline at end of file -- cgit v1.2.3