new_site/_sass
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
..
font-awesome Added Bluesky social (#2314) 2024-04-02 17:28:27 -03:00
tabler-icons Added "follow system" option to theme toggle (#2261) 2024-03-13 22:42:46 -03:00
_base.scss feat: simple filtering / searching on bibliography (#2523) 2024-07-08 16:51:22 -03:00
_cv.scss format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
_distill.scss format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
_layout.scss format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
_tabs.scss Added support for jekyll-tabs (#2380) 2024-05-02 14:34:48 -03:00
_themes.scss Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
_typograms.scss Added support for Google Typograms (#2379) 2024-04-30 11:26:56 -03:00
_variables.scss Fix: Add back-to-top button (#2433) 2024-05-24 15:58:55 -03:00