Samasaur1 / samasaur1.github.io

the jekyll source for my website
https://samasaur1.github.io/
3 stars 0 forks source link

Fix search #7

Open Samasaur1 opened 3 years ago

Samasaur1 commented 3 years ago

Apparently, the search index (which is built in search.html, shown below) builds the index with pre-rendered content from pages. This means that Liquid tags are included, and that (for example) blog tags are not, because they are never listed in any content fields (being put there by Liquid or being put in the front matter) https://github.com/Samasaur1/samasaur1.github.io/blob/a896821c6dc53e51d294429eac98505429633f27/search.html#L7-L18 This should be fixed.

Samasaur1 commented 3 years ago

Algolia (a name which I recognized because they are used for Bootstrap's search) have a Jekyll plugin

Samasaur1 commented 3 years ago

That might be worth looking into