George
1a7fddecf8
Fix code blocks not changing to plots and others ( #2497 )
...
For some unknown reason, all the `document.onreadystatechange = () => {`
checks stopped working. Thankfully, replacing them with
`document.addEventListener("readystatechange", () => {` fixed the
issues.
---------
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-06-11 14:06:38 -03:00
George
b4f90ff416
Fixes external blog posts in search ( #2470 )
...
Fixes #2469 . Separated `news` and `posts` from other collections in
search, since it caused duplicated entries. Also to ensure they are in
chronological reverse order.
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-06-02 13:48:09 -03:00
Howard Chiu
b35450e474
Update search.liquid ( #2466 )
...
missing { in osf section
2024-05-31 13:39:52 -03:00
Andrew Leonard
1ef1621bfc
Bugfix: Collapse the navbar on mobile when the user selects search ( #2462 )
...
This PR addresses #2438 by programmatically collapsing the navbar if the
user clicks on search on mobile.
## Behavior before

## Behavior after

2024-05-31 13:39:19 -03:00
George
c0763fff61
Fixed news titles in search ( #2450 )
...
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-27 13:50:14 -03:00
CheariX
e8a2a40ae8
feat: search.liquid over all collections ( #2447 )
...
Thank you @george-gca for the awesome work. on #2415 .
This PR generalizes the search on all collections. Currently, only
projects are added to the search.
This PR uses all of them, such as news. On my personal website, I use a
teaching collection which is then also automatically searched.
2024-05-27 12:28:56 -03:00
George
8a6ad2d5ed
Moved search data inside search.liquid ( #2439 )
...
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-24 16:21:53 -03:00
George
92cebc9bb1
Added support for search ( #2415 )
...
Added support for search within the template as suggested in #581 . I
decided to go with a client side search based on [Ninja
keys](https://github.com/ssleptsov/ninja-keys ), but using [deepdub's
fork](https://github.com/deepdub-ai/ninja-keys ) as basis since it
supports fuzzy search.
Had to do a bunch of changes to their code to make it work without using
node to install everything. Also changed to use some colors defined in
our side and using both pages' titles and descriptions for search. Also
had to increase the template max width to better accomodate the new item
in navigation bar.
Missing implementations:
- [ ] One thing I'd love to do (but currently have no idea how) would be
to change the text next to the search button depending on the platform.
For example, if the user is accessing the site on a mac they should use
⌘k instead of ctrl k.
- [x] Test how this looks like (and how it is supposed to work) on
devices with smaller screens
- [x] Support for offline mode
Some screenshots:
---
## Dark version



---
## Light version



---------
Signed-off-by: George Araujo <george.gcac@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 23:21:16 -03:00