hexo博客添加搜索功能
step1:安装插件
直接在博客文件夹下运行命令
npm install hexo-generator-searchdb --save
step2:修改站点全局配置文件_config.yml
search:
path: search.xml field: post format: html limit: 10000
step3:修改主题配置文件_config.yml
local_search:
enable: true
打完收工!!!
来源:CSDN
作者:liusirdotnet
链接:https://blog.csdn.net/Rambo521/article/details/81608069