плагин hexo-wordcount неактивен - PullRequest
0 голосов
/ 05 марта 2020

Моя шестнадцатеричная тема: Материал

ОС: macOS X Catalina

npm версия: 6.14.2

Я устанавливаю счет шестнадцатеричного слова в каталоге hexo npm i hexo-wordcount --save, но когда я добавляю <span class="post-count">{{ wordcount(post.content) }}</span> в свой пост, hexo дает мне Nunjucks Error.

Nunjucks Error:  [Line 2, Column 38] Error: Unable to call `wordcount`, which is undefined or falsey
    =====               Context Dump               =====
    === (line number probably different from source) ===
  1 | <center>
  2 | <img src="https://img.shields.io/badge/license-Anti%20996-blue.svg?style=flat" alt="license Anti%20996 blue"><img src="https://img.shields.io/badge/Last_Updated-20--03--05-green.svg?style=flat" alt="Last Updated: 20-03-05">
  3 |  <span class="post-count">{{ wordcount(post.content) }}</span>
  4 | </center>
  5 | <div class="paragraph">

Как я могу решить эту проблему?

...