hexo-theme-ayer/layout/_partial/post/word.ejs

20 lines
752 B
Plaintext
Raw Normal View History

2020-01-07 06:05:02 +00:00
<% if (!theme.word_count.only_article_visit || (!index && theme.word_count.only_article_visit)){ %>
2020-01-07 12:13:38 +00:00
<div class="word_count">
2020-01-07 06:05:02 +00:00
<span class="post-time">
<span class="post-meta-item-icon">
2020-01-07 12:13:38 +00:00
<i class="ri-quill-pen-line"></i>
2020-01-07 06:05:02 +00:00
<span class="post-meta-item-text"> 字数统计:</span>
<span class="post-count"><%= wordcount(post.content) %>字</span>
</span>
</span>
<span class="post-time">
&nbsp; | &nbsp;
<span class="post-meta-item-icon">
2020-01-07 12:13:38 +00:00
<i class="ri-book-open-line"></i>
2020-01-07 06:05:02 +00:00
<span class="post-meta-item-text"> 阅读时长≈</span>
2020-01-07 12:13:38 +00:00
<span class="post-count"><%= min2read(post.content) %>分钟</span>
2020-01-07 06:05:02 +00:00
</span>
</span>
</div>
<% } %>