new_site/assets
CheariX 0a40a22739
feat: simple filtering / searching on bibliography (#2523)
This PR adds a simple filter/search functionality to the bibliography.

It can be used in two ways:

1. Simply enter a search term in the input box.
2. Send a search term via the `location.hash`, e.g.,
https://alshedivat.github.io/al-folio/publications/#mechanics

**Notes:**

- The search box is optional. It can be simply removed if anyone does
not like it.
- Searching via `hash` works without the search box. My idea is to use
this functionality to index all BibTeX entries via the `ctrl-k` search
and link them via their BibTeX key.
- Searching via `hash` could also be used to set static links on the
current page, e.g., to filter specific co-authors, venues, etc.
- I don't know much about the design of the input field. I simply reused
the newsletter box style.
- Entering a search term in the box does exact matching. No fuzzy
search, no AND/OR logic. I kept it very simple. Maybe anyone else wants
to improve it in the future.
- The search looks in all data in the BibTeX entry that is parsed via
`bib.liquid`. E.g., it is possible to search for BibTeX keys, titles,
authors, years, venues, abstracts, or whatever `bib.liquid` prints.
- I used a 300ms delay before starting to search on the input box.
- Entering search terms in the box does not update the location hash
(things could get complex otherwise due to automatically updating each
other...)
- If the filter does not find any match in a specific year, the year is
also made invisible.

**Screenshot**
<img width="935" alt="screenshot"
src="https://github.com/alshedivat/al-folio/assets/1998723/447003e2-c623-4de9-b2c5-2357117a7743">

Looking for feedback.
2024-07-08 16:51:22 -03:00
..
audio Audio and Video support (#1367) 2023-05-15 12:31:27 -03:00
bibliography Issue 183 (#192) 2021-03-29 11:49:42 -04:00
css Added support for jekyll-tabs (#2380) 2024-05-02 14:34:48 -03:00
fonts Added "follow system" option to theme toggle (#2261) 2024-03-13 22:42:46 -03:00
html Add option for local HTML files (#2245) 2024-03-04 14:04:52 -03:00
img Delete assets/img/pagespeed.svg 2024-03-07 13:06:03 -03:00
js feat: simple filtering / searching on bibliography (#2523) 2024-07-08 16:51:22 -03:00
json Update work.liquid to show the location of work experience under cv … (#2349) 2024-04-17 15:17:43 -03:00
jupyter Added support for jupyter notebooks #417 (#1511) 2023-07-05 12:43:59 -03:00
pdf Include link and pdf in bib 2019-08-06 14:02:16 -04:00
plotly Add interactive plotly example to distill post (#1027) 2022-12-20 18:09:32 -05:00
video Audio and Video support (#1367) 2023-05-15 12:31:27 -03:00
webfonts Added Bluesky social (#2314) 2024-04-02 17:28:27 -03:00