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

weru
06.09.2020 30550ae14adf31b5deee63c148b249d0e89dbfe7
update exampleSite
1 files added
1 files modified
24 ■■■■■ changed files
exampleSite/content/docs/compose/search.md 23 ●●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/use-forestry-cms.md 1 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/search.md
New file
@@ -0,0 +1,23 @@
+++
title = "Search"
description = ""
weight = 8
+++
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
This occurs only when the user loads the search page i.e `/search/`. They can directly navigate to that url. Alternatively, the user can type you search query on the search field and click enter. They will be redirected to the search page which will contain matched results if any.
### 2. Live search
This behaviour will be obvious as the user types a search query on the search field. for any search queries longer than one character, will yield a list of `quick links` or a simple `no matches found`. Else, the user will be prompted to continue typing.
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.
> Hitting enter while typing on the search page will be moot.
### Customize search feedback labels
Use the `i18n` files to do so.
exampleSite/content/docs/compose/use-forestry-cms.md
@@ -2,7 +2,6 @@
title = "Use forestry CMS"
description = ""
weight = 3
draft = false
+++
Do you prefer managing your site using a CMS? Or would you like to make it easier for someone (a non-techie, perhaps) in your team to make edits easily? If interested, follow along. Else, skip to the [next section](../overview/)