Open probonopd opened 5 years ago
Getting Error: SimpleJekyllSearch --- failed to get JSON (https://appimage.github.io/search.json)
. Why? https://appimage.github.io/search.json is there...
https://jsonformatter.curiousconcept.com/ says: Invalid encoding, expecting UTF-8, UTF-16 or UTF-32.[Code 29, Structure 0]
https://stackoverflow.com/questions/30757481/jekyll-json-incorrect-character-encoding has a similar problem but no solution.
Note theContent-Type: application/json; charset=utf-8
:
me@host:~$ wget --server-response "https://appimage.github.io/search.json"
--2019-01-04 14:07:07-- https://appimage.github.io/search.json
Resolving appimage.github.io (appimage.github.io)... 185.199.109.153, 185.199.108.153, 185.199.111.153, ...
Connecting to appimage.github.io (appimage.github.io)|185.199.109.153|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: GitHub.com
Content-Type: application/json; charset=utf-8
Last-Modified: Fri, 04 Jan 2019 12:51:04 GMT
ETag: "5c2f56b8-1b01a"
Access-Control-Allow-Origin: *
Expires: Fri, 04 Jan 2019 13:16:14 GMT
Cache-Control: max-age=600
X-GitHub-Request-Id: 9400:0DAF:236E40A:2F46E4C:5C2F5A47
Content-Length: 110618
Accept-Ranges: bytes
Date: Fri, 04 Jan 2019 13:07:07 GMT
Via: 1.1 varnish
Age: 52
Connection: keep-alive
X-Served-By: cache-hhn1533-HHN
X-Cache: HIT
X-Cache-Hits: 1
X-Timer: S1546607227.271978,VS0,VE1
Vary: Accept-Encoding
X-Fastly-Request-ID: 32835b00548f65359a9a65df3d4dc164f02bb527
Length: 110618 (108K) [application/json]
There's a plugin for Algolia ot embed a powerful search on a jekyll website, it's deployable on Github Pages via Travis.
Thanks for the pointer @DirtyF. Right now we are not deploying the website via Travis, but via the Jekyll runner built into GitHub. Makes for quicker deployments, would prefer to keep it that way if possible.
@probonopd is there anything on the horizon about this?
A search field on the website is really (terribly) missed...
Thanks for your feedback @maverick74, I'd like a search too, but I could not figure out how to do it in Jekyll. Pull requests would be highly welcome.
For example, Jekyll search using lunr.js https://learn.cloudcannon.com/jekyll/jekyll-search-using-lunr-js/ or https://github.com/christian-fei/Simple-Jekyll-Search/ (works on GH Pages, has see-as-you-type) or https://github.com/jekylltools/jekyll-tipue-search (No plugin necessary. Fully compatible with Github Pages.)