Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Error: SimpleJekyllSearch --- failed to get JSON (/search.json) #194

Closed
milosmns opened this issue Mar 4, 2022 · 0 comments
Closed

Error: SimpleJekyllSearch --- failed to get JSON (/search.json) #194

milosmns opened this issue Mar 4, 2022 · 0 comments

Comments

@milosmns
Copy link

milosmns commented Mar 4, 2022

I'm using the Norlin theme and my generated search.json file now contains the following:

{
  "title"    : "Ubuntu · Software Updates",
  "content"  : "... the whole “update + cleanup” sequence could look like this:sudo apt-get update && \sudo apt-get upgrade -y ...",
  ...
}

This is the look on the page:

Screenshot at Mar 04 15-28-23

I had to replace the .min.js with a non-mini version to be able to debug further. Logging the actual error would have been nice, but I found the root cause. Basically the backslash is breaking the search plugin. And I really need that backslash in the code block in markdown, there's no way around it.

So I guess the search.json generator needs to be fixed to escape backslashes... I have no experience with Jekyll or this plugin, just as a side-note. 🙂

What do you propose to address this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants