LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

how to configure algolia #364

Closed selfmaking closed 7 years ago

selfmaking commented 7 years ago

I'am chinese ,my English is not very well.If i make some mistakes, forgive me. I have a issues, I can't use algolia. My steps is: 1.npm install hexo-algoliasearch --save 2.configure algolia: appId: "*" apiKey: "" adminApiKey: "" chunkSize: 5000 indexName: "" fields:

but when I click search button, no response only

2016-12-19 5 22 20

can you tell me what can I do. thanks.

talipovdaniyar commented 7 years ago

@selfmaking you have to create an account on https://www.algolia.com/. There is a free hacker subscription. Once your account is created you will find the needed api keys to complete the configuration.

PS: Make sure you have the 1.9.x release of tranquilpeak.

selfmaking commented 7 years ago

@talipovdaniyar I already have a account on algolia., and I make sure the tranquilpeak version is 1.9.x. so I don't know what I mistake.

talipovdaniyar commented 7 years ago

@selfmaking could you show the configuration of your _config.yml (theme)?

selfmaking commented 7 years ago

@talipovdaniyar this? algolia: applicationID: '0LQ6KO4WJH' apiKey: 'e0f2957c790694a27331476051b03412' adminApiKey: '4e018288a74837235ee336ba61bf929e' indexName: 'selfmaking' chunkSize: 5000 fields:

talipovdaniyar commented 7 years ago

@selfmaking No, the theme config file.

selfmaking commented 7 years ago

@talipovdaniyar

_config.docx

talipovdaniyar commented 7 years ago

@selfmaking Everything seems legit. Did you execute the 'hexo algolia' command for indexing your posts? npm install hexo-algoliasearch --save

If yes, what is the cli output?

selfmaking commented 7 years ago

yes, I found a error.

2016-12-25 12 54 11 2016-12-25 12 54 25
talipovdaniyar commented 7 years ago

@selfmaking ok 👍 let me know if you need help!

selfmaking commented 7 years ago

@talipovdaniyar Ah....but I don't have solutions, how to work out. can you give me some advice.thanks

LouisBarranqueiro commented 7 years ago

hey @selfmaking , please give us all information asked to create an issue, it will be easier to help you

selfmaking commented 7 years ago

@LouisBarranqueiro hi,when I execute the 'hexo algolia' command, a error be found.

This is screenshot,can you give me some advice.thanks

talipovdaniyar commented 7 years ago

@selfmaking move the Algolia configurations from the theme _config to the main _config.

selfmaking commented 7 years ago

@talipovdaniyar the Algolia configurations is already in main _config, but error is also exist

talipovdaniyar commented 7 years ago

@selfmaking could you send your main config then.

selfmaking commented 7 years ago

@talipovdaniyar

2017-01-04 8 27 38

I used to send you

LouisBarranqueiro commented 7 years ago

@selfmaking I closed this issue because it is a bit messy, we still don't have information asked. So please create a new issue and provide all information asked to report a bug (just follow the template)

<!-- use this template only to report a bug or ask a question -->
<!-- fill this part for bugs reporting or questions -->
### Configuration

 - **Operating system with version** : 
 - **Node version** : 
 - **Hexo version** : 
 - **Hexo-cli version** : 
 - **Tranquilpeak version** : <!-- Does the theme is original or modified? -->

<!-- fill this part for bugs reporting if needed  -->
### Actual behavior

<!-- fill this part for bugs reporting if needed  -->
### Expected behavior

<!-- fill this part for bugs reporting if needed -->
### Steps to reproduce the behavior

Also provide your main config - just copy it in the issue or give us a .txt or an .yml please