each item, index in page.categories.data i.fas.fa-inbox.fa-fw.post-meta-icon a(href=url_for(item.path)).post-meta-categories #[=item.name] if (index < page.categories.data.length - 1) i.fas.fa-angle-right.post-meta-separator
.meta-secondline - let postWordcount = theme.wordcount.enable && (theme.wordcount.post_wordcount || theme.wordcount.min2read) if (postWordcount) span.post-meta-separator | span.post-meta-wordcount if theme.wordcount.post_wordcount i.far.fa-file-word.fa-fw.post-meta-icon span.post-meta-label= _p('post.wordcount') + ':' span.word-count= wordcount(page.content) if theme.wordcount.min2read span.post-meta-separator | if theme.wordcount.min2read i.far.fa-clock.fa-fw.post-meta-icon span.post-meta-label= _p('post.min2read') + ':' span= min2read(page.content, {cn: 350, en: 160}) + _p('post.min2read_unit') //- for pv and count mixin pvBlock(parent_id,parent_class,parent_title) span.post-meta-separator | span(class=parent_classid=parent_id data-flag-title=page.title) i.far.fa-eye.fa-fw.post-meta-icon span.post-meta-label=_p('post.page_pv') + ':' if block block
- const commentUse = comments.use if commentUse && !comments.lazyload case commentUse[0] when 'Valine' if theme.valine.visitor +pvBlock(url_for(page.path),'leancloud_visitors',page.title) span.leancloud-visitors-count when 'Waline' if theme.waline.pageview +pvBlock('','','') span.waline-pageview-count(data-path=url_for(page.path)) when 'Twikoo' if theme.twikoo.visitor +pvBlock('','','') span#twikoo_visitors default if theme.busuanzi.page_pv +pvBlock('','post-meta-pv-cv','') span#busuanzi_value_page_pv elseif theme.busuanzi.page_pv +pvBlock('','post-meta-pv-cv','') span#busuanzi_value_page_pv
if comments.count && !comments.lazyload && page.comments !== false && comments.use - var whichCount = comments.use[0]
mixin countBlock span.post-meta-separator | span.post-meta-commentcount i.far.fa-comments.fa-fw.post-meta-icon span.post-meta-label= _p('post.comments') + ':' if block block case whichCount when 'Disqus' when 'Disqusjs' +countBlock span.disqus-comment-count a(href=full_url_for(page.path) + '#disqus_thread') when 'Valine' +countBlock a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl") span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount") when 'Waline' +countBlock a(href=url_for(page.path) + '#post-comment') span.waline-comment-count(data-path=url_for(page.path)) when 'Gitalk' +countBlock a(href=url_for(page.path) + '#post-comment') span.gitalk-comment-count when 'Twikoo' +countBlock a(href=url_for(page.path) + '#post-comment') span#twikoo-count when 'Facebook Comments' +countBlock a(href=url_for(page.path) + '#post-comment') span.fb-comments-count(data-href=urlNoIndex()) span.post-meta-separator |  span.post-meta-dianzan if theme.wordcount.post_wordcount a(href="javascript:void(0)"class="dianzan" onclick="dianzan()") i.fas.fa-thumbs-up span.post-meta-label= _p(' 点赞') + ':' span.dianzan-count=0