jekyll-TeXt-theme icon indicating copy to clipboard operation
jekyll-TeXt-theme copied to clipboard

Not sure if it is me, but search isn't working for me.

Open ghost opened this issue 4 years ago • 2 comments

I've been adding pages, but the search doesn't search them. Search only searches post titles.

[Description of the bug]

Steps to Reproduce

  1. Made a page outside of the posts
  2. Added it to the navigation bar
  3. Doesn't come up in search

Expected behavior

[What you expected to happen]

I expect all the pages, not just posts to come up in the search- like in the demo pages.

[Screenshots to help explain your problem.]

image

Environment (If Necessary)

  • OS: [e.g. Github Pages, Windows 10, macOS 10.13, Linux(CentOS 7.5), iOS 11, Android 8(Pixel 2)]
  • Ruby: [e.g. Github Pages, 2.4.0p0]
  • Jekyll: [e.g. Github Pages, 3.7.3]
  • Browser: [e.g. Chrome, Safari, Edge, Firefox]

ghost avatar Apr 18 '20 18:04 ghost

I can not reproduce your situation, could you please provide more information?

Harrypotterrrr avatar Aug 27 '20 09:08 Harrypotterrrr

I have found that the search only finds items in the 'collections', defined in _config.yml. By adding your directories as a collection, it should come up in the search results. See https://github.com/kitian616/jekyll-TeXt-theme/blob/master/docs/_config.yml#L209 as an example.

kieran-mackle avatar Aug 02 '21 02:08 kieran-mackle