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

20 lines
800 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-04-04 06:38:01 +00:00
<span class="post-meta-item-text"> <%= __('post.word_count') %>:</span>
<span class="post-count"><%= wordcount(post.content) %></span>
2020-01-07 06:05:02 +00:00
</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-04-04 06:38:01 +00:00
<span class="post-meta-item-text"> <%= __('post.read_time') %>≈</span>
<span class="post-count"><%= min2read(post.content) %> <%= __('post.minutes') %></span>
2020-01-07 06:05:02 +00:00
</span>
</span>
</div>
<% } %>