Lunr Search Problem
leonyonz opened this issue · 7 comments
How did you get search working in the first place? I can't get it to show any results on a fresh install on Pages.
Hello @thatvirtualboy ummm, im running it on Nginx and everything fine except post limitation that i mention above.
For now im make custom search on my website you can look at : https://belajarlinux.id
@thatvirtualboy the search should work normally, when doing jekyll serve
open the console and check if lunrsearchengine.js
is being found and read
Thanks @PeterHdd Here is what I see
I had a problem with it because I changed the baseurl. I changed the baseurl to /
instead of baseurl: /mediumish-theme-jekyll
so the blog can be immediately in the main domain. But then I had problems with different url including the search, which I was able to fix by removing the extra /
. For example in some places I had {{ site.baseurl }}/{{ post.url }}
so I just changed it to {{ site.baseurl }}{{ post.url }}
and it worked!
I will try to change baseurl to ""
and test it to see what should be changed, so you can just use /
if you want the base domain to have the blog
Hmm replacing ""
with /
breaks formatting and throws all sorts of errors. In my prior theme, baseURL was set to ""
as well