Hexo + Butterfly Algolia搜索配置记录注册Algolia注册地址 新建 index 打开 API Keys 界面 复制需要的信息 在根目录的站点配置文件_config.yml 中加入如下配置,参照上图的各种key值 yml123456789101112131415algolia: appId: "Z7A3XW4R2I" apiKey: "12db1ad54372045549ef465881c17e743" adminApiKey: "40321c7c207e7f73b63a19aa24c4761b" chunkSize: 5000 indexName: "my-hexo-blog" fields: - content:strip:truncate,0,500 - excerpt:strip - gallery - permalink - photos - slug - tags - title 操作完成后执行命令bash1hexo algolia 修改主题配置文件yml123456789algolia_search: enable: true hits: per_page: 6 labels: input_placeholder: Search for Posts hits_empty: "We didn't find any results for the search: ${query}" # if there are no result hits_stats: "${hits} results found in ${time} ms" 参考资料Hexo+Next集成Algolia搜索github