* remove hljs
* rename var --hljs-bg to --code-block-bg
* bundle chroma-styles from css/includes/chroma-styles.css
* add compatibility fixes for papermod <-> chroma
* fix line-num and line padding and set width for line container to 100%
* After a lot of experimentation this compatiblity should work well
* fix inline line highlights not working
* Use catppuccin-macchiato as default theme with highlightStyle 'bg:#474733'
- hugo gen chromastyles --style catppuccin-macchiato --highlightStyle 'bg:#474733' > assets/css/includes/chroma-styles.css
* feat: add configurable limit to search results
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
* Handle case where params.fuseOpts is not defined
resulting into `Cannot read properties of null (reading 'limit')`
Utilizes search options by fuse https://www.fusejs.io/api/methods.html#search
The options:
limit (type: number): Denotes the max number of returned search results.
---------
Signed-off-by: Navendu Pottekkat <navendu@apache.org>
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
- fix menu element becoming inactive
change class active -> focus
- set input type seach #198
- add a reset func
- add script to clear searchbox
when clicked on X sign
* set up basic actions on keypress
* add actions to perform conditionally
* add simple highlight animation
* prevent mouseclick to change active element
* clear input box on Escape
* click on Arrow Right
* clear results and focus search-input on esc
* refactor
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
* modified working for PaperMod
* fetches current lang index.json for search
* add fuse.js v6.4.3 LICENSE: Apache License 2.0
* bundled fastsearch and fusejs as search.js
Co-authored-by: Craig Mod <stuff@craigmod.com>