Better way to add website search engine for Jekyll-based website
00 min
Aug 25, 2022
Aug 26, 2023
slug
tags
password
icon
date
category
type
status
summary
This post illustrates how to use Simple-Jekyll-Search to build the search page in a personal website. This approach is motivated by Kev Quirk's post.
I amend the procedures to make it more simple.

1. First step

Create a file search.json in the root directory with the code in the file.

2. Second step

Create a search-script.js file in the /assets/js/ directory.
 
 

3. Third step

Create a new file /_pages/search.md for search page display with a personalised style and paste the following code:

Comments
  • Twikoo
  • Giscus