new_site/_includes
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
..
cv format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
repository Fix repo card heigth for different repo descriptions (#2525) 2024-06-24 11:53:47 -03:00
resume Fix: date pill position on CV (#2455) 2024-05-31 13:27:10 -03:00
scripts feat: simple filtering / searching on bibliography (#2523) 2024-07-08 16:51:22 -03:00
audio.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
citation.liquid Added post citation (#2377) 2024-04-29 14:28:06 -03:00
disqus.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
figure.liquid Changed lazy loading in figure.liquid 2024-02-14 12:58:28 -03:00
footer.liquid Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
giscus.liquid Added "follow system" option to theme toggle (#2261) 2024-03-13 22:42:46 -03:00
head.liquid Fix offline leaflet (#2420) 2024-05-15 17:56:00 -03:00
header.liquid fix: blog highlighted in nav for child pages (#2516) 2024-06-18 14:42:02 -03:00
latest_posts.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
metadata.liquid Move libs versions to config (#2139) 2024-01-28 19:10:42 -03:00
news.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
pagination.liquid fix: remove 'index.html' in pagination (#2509) 2024-06-15 16:31:40 -03:00
projects.liquid Feat reworked project layout (closing #2246) (#2357) 2024-04-22 21:39:22 -03:00
projects_horizontal.liquid Feat reworked project layout (closing #2246) (#2357) 2024-04-22 21:39:22 -03:00
related_posts.liquid Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
selected_papers.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
social.liquid feat: added IEEE and ACM social (#2321) 2024-04-07 17:05:41 -03:00
video.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00