You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/_docs/05-configuration.md
+7
Original file line number
Diff line number
Diff line change
@@ -618,6 +618,13 @@ To enable site-wide search add `search: true` to your `_config.yml`.
618
618
619
619
The default search uses [**Lunr**](https://lunrjs.com/) to build a search index of all post and your documents in collections. This method is 100% compatible with sites hosted on GitHub Pages.
620
620
621
+
To have it index all pages, update `lunr` in `_config.yml` like so:
622
+
623
+
```yaml
624
+
lunr:
625
+
search_within_pages: true
626
+
```
627
+
621
628
**Note:** Only the first 50 words of a post or page's body content is added to the Lunr search index. Setting `search_full_content` to `true` in your `_config.yml` will override this and could impact page load performance.
0 commit comments