开启snippet的本地搜索功能

本文最后更新于 2018年8月10日 上午

由于使用的是snippet的主题,使用文档已经说出了如何开启本地的搜索功能。

如果要使用本地站点搜索,必须安装插件hexo-generator-json-content来创建本地搜索json文件

1
npm i [email protected] -S

然后修改主题配置_config.yml文件下jsonContent相关参数。

1
2
3
4
5
6
7
8
9
10
## 搜索
jsonContent:
searchLocal: true // 是否启用本地搜索
searchGoogle: true //是否启用谷歌搜索
posts:
title: true
text: true
content: true
categories: true
tags: true

开启snippet的本地搜索功能
https://yuluod.github.io/2018/08/10/开启snippet的本地搜索功能/
作者
yuluo
发布于
2018年8月10日
许可协议