Better way to add website search engine for Jekyll-based website
00 min
Aug 25, 2022
Aug 15, 2024
slug
tags
password
icon
lang
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.
{/* truncate */}

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