Enable algolia search with the following steps:
- register on www.aloglia.com
- create index and api key
update hexo config
1
2
3
4
5algolia:
applicationID: '<your application id>'
apiKey: '<you search api key>'
indexName: '<index name>'
chunkSize: 5000update
next
theme config1
2
3
4
5
6
7
8
9# Algolia Search
algolia_search:
enable: true
hits:
per_page: 10
labels:
input_placeholder: input keywords
hits_empty: "not found ${query} related contents"
hits_stats: "${hits} records,total used ${time} ms"upload data to algolia
1
hexo algolia --flush