hugo-theme-stack/assets/ts
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
..
color.ts refactor(ts/color): improve code style and change name of some variables for more clarity 2020-08-29 11:43:00 +02:00
colorScheme.ts chore: add toggleEl type (#256) 2021-07-06 12:25:27 +02:00
createElement.ts refactor: create createElement.ts 2020-11-06 11:12:48 +01:00
gallery.ts refactor(article): better support for svg and external images (#326) 2021-08-25 12:20:15 +02:00
main.ts feat(article): copy button for highlight block (#295) 2021-08-08 18:15:27 +02:00
menu.ts 🎉 Initial commit 2020-08-22 13:20:08 +02:00
search.tsx refactor(search): avoid issue with one character keyword (#447) 2022-01-18 23:19:30 +01:00