cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
437 stars 67 forks source link

fix: Correctly extract page titles when not specified in frontmatter, closes #146 #147

Closed kleinschmidtj closed 1 year ago

kleinschmidtj commented 1 year ago

Fixes #146 by removing header from the page title query. This PR was confirmed to work locally when I added another document that has no front matter title. I confirmed in the UI that the search still works with a keyword that appears on two different pages.

Screen Shot 2022-10-03 at 1 49 54 PM
cmfcmf commented 1 year ago

Thanks a lot! I also filed https://github.com/facebook/docusaurus/issues/8476 to track this inconsistency.