文章字数显示以及阅读时间预估

236 words, 1 mins

优化阅读体验

添加代码到_includes/article/top/custom.html

{% capture words %}
	{{ content | strip_html | strip_newlines | remove: " " | size }}
{% endcapture %}

{% capture time %}
	{{ words | divided_by: 350 | plus: 1 }} 
{% endcapture %}
<h6> {{ words }} words, {{ time }} mins </h6>