- Update theme toggle and initialization scripts to set data-theme attribute
- Replace CSS selectors using .dark class with [data-theme="dark"] and
[data-theme="light"] attribute selectors
- Set CSS color-scheme variable alongside theme colors for better native
control appearance
- Removes redundant styles
---------
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
The previous shared styling applied flex layout to both `.post-meta` and
`.breadcrumbs`, causing awkward line breaks in post metadata where
separators and reading time would appear at the start of new lines.
This change keeps the shared color and font-size styling, but only
applies flex layout to `.breadcrumbs`. Post metadata (author, date,
reading time) uses the default block flow which handles inline content
with separators more naturally.
Fixes#1789🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
* 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>
According to caniuse.com only around 69% of mobile user and 22% desktop users use a browser that supports this element. Therefore this change uses text-decoration: line-through to archive the same effect across browsers.