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

weru
07.17.2020 b7cf066d1831e3baf15f454c0115fec5734f8157
edit page
2 files modified
14 ■■■■ changed files
exampleSite/content/docs/compose/overview.md 2 ●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/search.md 12 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/overview.md
@@ -5,7 +5,7 @@
  Use hugo shortcodes to quickly compose your documentation pages.
---
Instead of writing all your site pages from scratch, Hugo lets you define and use [shortcodes](https://gohugo.io/content-management/shortcodes/).
Instead of writing all your site pages from scratch, Hugo lets you define and use [shortcodes](https://gohugo.io/content-management/shortcodes/).
Why shortcodes? While markdown is sufficient to produce simple pages, it's insufficient where complex page structures are needed. Thusly, whenever we need special styling, shortcodes compliment the shortcomings of markdown.
exampleSite/content/docs/compose/search.md
@@ -12,7 +12,7 @@
### 2. Live search
This behaviour will be obvious as the user types a search query on the search field. All search queries, will yield a list of `quick links` or a simple `no matches found`. Else, the user will be prompted to continue typing.
This behaviour will be obvious as the user types a search query on the search field. All `valid search queries`, will yield a list of `quick links` or a simple `no matches found`. Else, the user will be prompted to continue typing.
> 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.
@@ -29,4 +29,12 @@
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
(2) blog/events sections that are separate from the docs section -->
(2) blog/events sections that are separate from the docs section -->
### What is a valid search query
A valid search query must be long enough. If the search query can be cast as a float, then it only need contain one or more characters.
Else the search query must be at least 2 characters long.
<!-- This behaviour will change. -->