hexo-assistants

hexo 内容分析插件

Usage no npm install needed!

<script type="module">
  import hexoAssistants from 'https://cdn.skypack.dev/hexo-assistants';
</script>

README

hexo-analysis

一个 hexo 内容分析插件

调用

获取结果集

const result = timeStatistics(item.content)

// 返回值
{
    wordscount: 666, 
    similar: '品一杯茶的时间' 
}

渲染结果集

const result = renderTimeStatistics(item.content)

// 返回值
// 全文共666个字,阅读大约需要品一杯茶的时间

在pug中调用

if is_detail
    p=renderTimeStatistics(item.content)

效果图