new_site/_pages
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
..
404.md Move news and 404 to pages (#2060) 2024-01-10 01:59:59 -05:00
about.md Correct config variable for enabling latest_posts on about page (#2243) 2024-03-03 13:28:58 -03:00
about_einstein.md format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
blog.md Delete extra space ; Update blog.md (#2444) 2024-05-27 13:01:41 -03:00
cv.md Now blog can be reorganized in header (#1996) 2023-12-25 14:41:27 -03:00
dropdown.md format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
news.md Move news and 404 to pages (#2060) 2024-01-10 01:59:59 -05:00
profiles.md format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
projects.md Feat reworked project layout (closing #2246) (#2357) 2024-04-22 21:39:22 -03:00
publications.md feat: simple filtering / searching on bibliography (#2523) 2024-07-08 16:51:22 -03:00
repositories.md format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
teaching.md Now blog can be reorganized in header (#1996) 2023-12-25 14:41:27 -03:00