hexo-generator-search 本地搜索

  1. 根据hexo-generator-search提供的文档进行配置

    • 在hexo文件根目录中shift + 右键在当前目录打开powershell。

    • 输入npm install hexo-generator-search --save

      image-20210307211018804

    • 在_config.yml中添加

      1
      2
      3
      4
      search:
      path: search.xml
      field: post
      content: true
  2. 在_config.butterfly.yml中将hexo-generator-search 改为true;

字数统计

  1. 打开hexo目录,powershell

  2. npm install hexo-wordcount --save

  3. 修改_config.butterfly.yml

    1
    2
    3
    4
    5
    wordcount:
    enable: true
    post_wordcount: true
    min2read: true
    total_wordcount: true