fi3ework / hexo-theme-archer

🎯 A smart and modern theme for Hexo.
https://fi3ework.github.io/hexo-theme-archer
MIT License
1.52k stars 273 forks source link

Fix error if algolia is missing from hexo config #108

Closed pfrankw closed 6 years ago

pfrankw commented 6 years ago

Adding little "if" to check if algolia is enabled in the theme settings.

In my specific case, I have not installed the hexo-algolia package nor I have these variables in my hexo config, so the rendering of the theme was crashing.

fi3ework commented 6 years ago

thanks!