Commit Graph

16 Commits

Author SHA1 Message Date
James Wilcock
ab89221a8e
remove accents from search input and search string (#810) 2022-07-02 20:08:17 +00:00
Luke Smith
5e3b7c54e7 show only most recent if not searching, visibility 2022-07-02 09:37:26 -04:00
dosisod
4f17b3d901 Replace "style=display:none" with HTML data tags:
When storing metadata in an HTML node, you can use data attributes, which is
more declarative, and doesn't require rendering an invisible node.

See: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
2022-07-01 19:15:30 -07:00
augusto
0124077e9d
clean up again & just compute searchText.split(" ") once (#805) 2022-07-01 23:49:35 +00:00
Luke Smith
543658ab7a Merge branch 'master' of https://github.com/Hrafven/based.cooking into Hrafven-master 2022-07-01 16:27:11 -04:00
augusto
e552f2ee71
clean up js (#801)
* clean up javascript
* set element id instead of class on the `clear-search` button
2022-07-01 19:15:50 +00:00
Hugo Bidois
582ff71117
trim whitespace in searchString 2022-07-01 18:55:12 +02:00
Hugo Bidois
6519daeaef
add support for multiterm search 2022-07-01 18:51:48 +02:00
Arya K
c194763386
Add Javascript Weblabels for search (#798)
This commit makes based.cooking's search compatible with GNU LibreJS

Co-authored-by: Arya Kiran <aryak@vern.cc>
2022-07-01 15:15:01 +00:00
Luke Smith
71c3eac725 no styling in noscript, fix #788 2022-06-23 21:19:50 -04:00
Luke Smith
a98188000e allow descriptions in metadata, etc 2022-06-23 09:41:34 -04:00
Luke Smith
a36480dd59
tweaks 2022-05-28 15:03:28 -04:00
Luke Smith
e6727fbfe9
if js disabled, hide search bar 2022-05-28 13:13:23 -04:00
Luke Smith
95133388ea
textContent replaces innerText 2022-05-26 20:01:39 -04:00
Luke Smith
b7f117cf4c
Filter Articles with a Javascript Search (#772)
* for lugo changes

* quick search through recipes

* Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>

* Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>

* when searching, list one column, big results

* Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>

* Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>

* Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>

* change for my naming

* remove for fix

* redundant

* hide tags in items so search sees tags

* last superficial changes

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>
2022-05-26 23:58:53 +00:00
Luke Smith
5d1f06baf0
index changes with shorcodes instead 2022-05-08 22:41:11 -04:00