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.85k stars 484 forks source link

An error about algolia #368

Closed selfmaking closed 7 years ago

selfmaking commented 7 years ago

Configuration

when I run "hexo algolia"

2017-01-05 9 27 01

and when I clicked search button, there is no response

LouisBarranqueiro commented 7 years ago

Hey @selfmaking . thanks for re-creating the issue.

The error say that you didn't provide an application ID. The problem should come from your configuration file. Copy your main _config.yml please

selfmaking commented 7 years ago

@LouisBarranqueiro _config.txt

LouisBarranqueiro commented 7 years ago

you did a mistake in your configuration.

replace applicationID by appId.

algolia:
  appId: "Z7A3XW4R2I" // here
  apiKey: "12db1ad54372045549ef465881c17e743"
  adminApiKey: "40321c7c207e7f73b63a19aa24c4761b"
  chunkSize: 5000
  indexName: "my-hexo-blog"
  fields:
    - title
    - tags
    - slug
    - excerpt
    - excerpt:strip
    - photos
    - gallery
selfmaking commented 7 years ago

@LouisBarranqueiro thank you very much ,it work. when I run hexo algolia

2017-01-05 3 43 07

but the algolia plugin can popping.

2017-01-05 3 41 55

but the layout looks weird and when I input keyword, it doesn't work.

LouisBarranqueiro commented 7 years ago
  1. as it said. you reach the max number of operations for this month. Check Hacker plan

  2. It can pop even if you exceeded max limit but search will not works.

selfmaking commented 7 years ago

Ah...but this month just started .

LouisBarranqueiro commented 7 years ago

Go check usage on your account to see what going on

selfmaking commented 7 years ago

@LouisBarranqueiro my mistake, algolia need renewal every month. thanks. now, when I runhexo algolia

2017-01-06 9 56 52

always 0 post indexed, I don't know why

selfmaking commented 7 years ago

@LouisBarranqueiro I have already solved, thanks for your help.

LouisBarranqueiro commented 7 years ago

your welcome :)

AndrewWang1993 commented 7 years ago

@selfmaking I wonder how to solve 0 post indexed problem ???

selfmaking commented 7 years ago

@PeoceWang run hexo clean and 'hexo g',I just clean cache, you can try

AndrewWang1993 commented 7 years ago

@selfmaking Tks, I found my solution. Just execute hexo algolia && hexo d Instead of hexo g && hexo algolia && hexo d.

selfmaking commented 7 years ago

@LouisBarranqueiro Maybe 'hexo g' should behind 'hexo algolia'

AndrewWang1993 commented 7 years ago

@selfmaking In my PC ' hexo g ' is not necessarily (' hexo algolia') = ( 'hexo algolia' + 'hexo g')

selfmaking commented 7 years ago

@LouisBarranqueiro I just tried it on, when I run hexo algolia also can create html files. so maybe it include hexo g

LouisBarranqueiro commented 7 years ago

what's the problem?

AndrewWang1993 commented 7 years ago

@LouisBarranqueiro You may should modify official documentation, cause ' hexo g ' is not necessarily after ' hexo algolia ' , And what' worse is if I run ' hexo algolia ' after ' hexo g ' , IT CAN NOT GENERATE INDEX !!!

LouisBarranqueiro commented 7 years ago

this is not related to the theme. open an issue on the hexo-algolia repository.

skout90 commented 7 years ago

@PeoceWang Thanks!! you save my time!