slashdotdash / jekyll-lunr-js-search

[UNSUPPORTED] Jekyll + lunr.js = static websites with powerful full-text search using JavaScript
MIT License
548 stars 109 forks source link

date not showing #88

Closed cgoessni closed 8 years ago

cgoessni commented 8 years ago

Hello,

with Jekyll v3.0.1, there is no date shown in the search results. Neither {{pubdate}} nor {{displaydate}} shows up. I did test it with a blog I develop, and a standard vanilla install. Any idea where to look for the problem?

Thanks in advance, Clemens

dauryg commented 8 years ago

Ran into this issue myself. submitted a pull request.

cgoessni commented 8 years ago

Perfect, thanks!

Slightly OT: Do you know if there is a simple solution to the problem, that the search results are shown in arbitrary order? I would like to sort them by date...

dauryg commented 8 years ago

I think you would have to look into lunarjs side of things. You can add a custom function into the pipeline to change the way it indexes/sorts. http://lunrjs.com/docs/#Pipeline

xavibenjamin commented 8 years ago

I hope that PR is merged soon. I'm running into this issue too