mirror of https://github.com/onweru/compose.git

weru
31.32.2021 2ef73821309b872aaa515cc71b679f0bc6dab4c7
Update from Forestry.io
weru updated exampleSite/content/docs/compose/search.md
1 files modified
11 ■■■■ changed files
exampleSite/content/docs/compose/search.md 11 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/search.md
@@ -1,9 +1,9 @@
+++
title = "Search Function"
description = ""
title = "Search Function"
weight = 8
+++
+++
Firstly, ensure you have these lines inside your config.toml file
```toml
@@ -11,7 +11,6 @@
   home = ["HTML", "RSS","JSON"]
```
Compose implements `fuse.js` to enable search functionality. At the time of this writing, search on these theme takes either of this forms:
### 1. Passive search
@@ -24,16 +23,18 @@
> Please note that the results under quick links will be a truncated list of the most relevant results. Only a maximum of 8 items will be returned. This number is pragmatic at best if not arbitrary. On the search page, the number is set to 12.
Note that live search on the search page will behave differently than on the other pages. Nonetheles, the pages applies the same live search principle.
Note that live search on the search page will behave differently than on the other pages. Nonetheles, the pages apply the same live search principle.
> Hitting enter while typing on the search page will be moot.
> Hitting enter while typing on the search page will be moot as that page’s content will live update as you type in the search word / phrase.
### Customize search feedback labels
Use the `i18n` files to do so.
<!-- ### scoped search
#### Searching within a specific/current page
I think the other 3 are not only related, but can be for the most part be achieved using the good old-fashioned CTRL/CMD + F.
(1) multilingual sites