最后更新于3年前
Configuration in the Global _config.yml
_config.yml
First create Account. After registration is complete, create a new Index, which will be used later.
Install
npm install --save hexo-algolia
Configure Algolia integration to site _config.yml:
algolia: applicationID: 'applicationID' apiKey: 'apiKey' indexName: '...'
Run the following command to upload Index data.
$ export HEXO_ALGOLIA_INDEXING_KEY=High-privilege API key # Use Git Bash # set HEXO_ALGOLIA_INDEXING_KEY=High-privilege API key # Use Windows command line $ hexo clean $ hexo algolia
Turn on theme configuration at site _config.yml
aomori_search_algolia: true