Skip to content

Lunr-based search page not working #2615

Answered by iBug
floatingpurr asked this question in Q&A
Discussion options

You must be logged in to vote

I can reproduce this issue with your Gemfile (Jekyll 4.1.0), and it goes away when switching to Jekyll 4.1.1.

The problem appears to be jekyll/jekyll#8217. Try updating your Jekyll version.

If you can't update Jekyll for whatever reason, try adding layout: none as a default in _config.yml:

defaults:
  - scope:
      path: "assets/js/lunr"
    values:
      layout: none

My local testing (w/ J 4.1.0) verifies that the above change is working, though it's recommended that you update software instead.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mmistakes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2615 on December 09, 2020 05:03.