myst729 / Vuelog

A backend-free blog system built on top of Vue.js
https://vuelog.js.org/
MIT License
266 stars 39 forks source link

Use with Lunr #27

Closed vaughanwatson closed 5 years ago

vaughanwatson commented 6 years ago

Hi Leo, Is there any chance of you integrating Lunr or ElasticLunr and Grunt as part of the basic package to enable some kind of search feature on the markdown files directories out of the box?

myst729 commented 6 years ago

https://myst729.github.io/playground/

Just wrote a demo with Lunr, looks like interesting. But it somehow behaves weird. For instance, searching wild will partially match Wilde, others don't. Searching you or your doesn't match anything.

Not sure how to integrate with Vuelog. It requires pre-defined indices, but Vuelog doesn't have a build process. All markdown contents are fetched on requested. Any ideas?

myst729 commented 6 years ago

The reason I don't want Grunt (or Gulp, Webpack, etc.) has been addressed here. Regarding current situation, I think Hexo might be a better choice for you.