hugo-toha/layouts/partials
donfiguerres 65049cfbb7
Dark theme via DarkReader (#595)
* Initial commit for dark theme.

* Use DarkReader.auto() to watch for system theme.

* Tunning default parameters.

* Allow configurable number of recent posts.

* Added invisible element to hack theme initialization.

* Added default value.

* Use Darkreader CDN.

* Cleanup to keep darkreader in as few files as possible.

* Renamed darkmode.js to darkmode-darkreader.js.

* Bring back the initialization.

* Added provider property.

* Added theme selector to the posts navbar.

* Removed extra line breaks.

* Changed darkreader CDN to local copy.

* Renamed to darkMode.

* Fixed CodeQL failures.

* Added icons.

* Renamed function.

* Added SVG inversion.

* Used icons for selection.

* Toggle initial dark only in the dynamic navbar.

Co-authored-by: donfiguerres <donfiguerres@github.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
2022-06-10 15:18:49 +00:00
..
cards Update skill.html (#512) 2022-01-24 10:58:50 +00:00
comments Add commento.io support (#564) 2022-03-30 19:57:40 +00:00
helpers Allow setting GIFS as author image (#394) 2021-08-10 02:39:10 +00:00
misc Add analytics template + Add Ko-Fi donation button + Host fonts locally (#530) 2022-03-14 22:01:49 +06:00
navigators Dark theme via DarkReader (#595) 2022-06-10 15:18:49 +00:00
sections Added logic to the education icon line (#589) 2022-05-16 05:08:47 +00:00
analytics.html Enable pages in counter.dev (#571) 2022-04-02 00:06:38 +06:00
comments.html Add commento.io support (#564) 2022-03-30 19:57:40 +00:00
footer.html [enhancement] Fix year in copyright notice (#528) 2022-02-09 05:55:32 +00:00
header.html Dark theme via DarkReader (#595) 2022-06-10 15:18:49 +00:00
math.html Add analytics template + Add Ko-Fi donation button + Host fonts locally (#530) 2022-03-14 22:01:49 +06:00
mermaid.html Add optional mermaid shortcode (#551) 2022-03-13 15:53:27 +00:00
opengraph.html Use absURL for image in OpenGraph header 2021-05-30 18:49:06 +06:00
scripts.html Dark theme via DarkReader (#595) 2022-06-10 15:18:49 +00:00