Hugo-theme-stack/assets
Jimmy Cai 4764a92df3
refactor(search): avoid issue with one character keyword (#447)
* refactor(search): avoid issue with one character keyword

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/184

* Remove keyword sorts

* fix typo: secion -> section

* fix(search): avoid matching html entity

* Use | operator to concatenate keywords

Idea from https://github.com/CaiJimmy/hugo-theme-stack/pull/436

* Add missing `matchCount`

* Limit preview length

* Don't add ellipsis to title

* add comment to `processMatches`

* Initialize DOMParser only once

* Remove marker function

* Deal with blank search

* Use const keyword for constant arrays
2022-01-18 23:19:30 +01:00
..
icons feat: social menu (#401) 2021-10-23 11:58:55 +02:00
img feat: add avatar placeholder to assets/img 2020-09-13 11:30:31 +02:00
scss fix: add missing diff syntax highlight (#445) 2021-12-28 10:48:22 +01:00
ts refactor(search): avoid issue with one character keyword (#447) 2022-01-18 23:19:30 +01:00
jsconfig.json refactor(search): avoid issue with one character keyword (#447) 2022-01-18 23:19:30 +01:00