33 Commits

Author SHA1 Message Date
Óscar Fernández
bf31f7ff47
feat(theme-switcher)!: respect theme_default when JS is enabled (#224)
BREAKING CHANGE: changes the behaviour of `theme_default`
2023-11-25 00:08:58 +01:00
welpo
ee2b171fbd
🐛 fix(theme-switcher): match functionality of minified and non-minified files 2023-11-22 00:18:05 +01:00
Óscar Fernández
1df3f7f89c
feat(sitemap): add XML styling (#221) 2023-11-14 23:26:44 +01:00
welpo
5458b1c533
🎨 style: fix whitespace issues 2023-10-07 23:31:59 +02:00
Óscar Fernández
afbf4017e2
feat(theme-switcher): add theme reset button (#198) 2023-10-06 01:36:56 +02:00
Óscar Fernández
040a46dc4b
🐛 fix(hyvor-talk): switch from ID to class selector for initialisation (#196) 2023-10-04 18:02:36 +02:00
Almost-Senseless-Coder
2eaee6557c
🌐 fix(theme-switcher): properly translate aria-label (#192)
Co-authored-by: Tim Böttcher <tim.boettcher2@rwth-aachen.de>
Co-authored-by: welpo <welpo@users.noreply.github.com>
2023-10-04 12:41:31 +02:00
Óscar Fernández
2c6ac293ad
️ fix: improve accessibility and i18n (#183) 2023-10-02 18:08:57 +02:00
welpo
47c493be89
🐛 fix(isso-comments): actually set maxCommentsNested 2023-09-17 00:45:26 +02:00
welpo
427ffc7241
feat(footer/socials): add base64 encoded email protection 2023-08-18 18:39:24 +02:00
welpo
725101300e
️ refactor(utterances): further minify JS 2023-08-17 23:58:08 +02:00
welpo
a4e48b48fd
💡 chore: add comments 2023-08-02 23:52:28 +02:00
welpo
92e6af1d58
️ refactor: further minify theme initialization 2023-08-02 23:51:52 +02:00
Óscar
5cdc18e688
feat: add backlinks to footnotes (#101) 2023-08-02 18:35:27 +02:00
welpo
9a98789922
feat: add support for Isso comments 2023-07-26 01:47:26 +02:00
welpo
e1dfd2ea07
🐛 fix: properly initialise currentTheme
The `currentTheme` variable is now properly initialized when setting
the initial theme, which fixes the "extra click" issue observed when system preference
is `dark` and there's no saved theme in localStorage.

Also minifies the themeSwitcher.

Fixes #94
2023-07-25 00:40:45 +02:00
welpo
4b43229d0a
🚚 chore(js): rename minified files 2023-07-17 20:40:48 +02:00
welpo
7924e8206c
feat: add support for Hyvor Talk comments 2023-07-17 20:10:18 +02:00
welpo
5993e950c7
feat: add support for giscus and utterances 2023-07-14 21:22:23 +02:00
welpo
19d120019b
feat: add support for giscus & utterances comments 2023-07-12 18:44:28 +02:00
welpo
93c8b577b8
🚧 feat: add utterances support 2023-07-10 21:42:21 +02:00
welpo
2dec139e41
feat: add copy button to code blocks 2023-07-07 22:03:47 +02:00
welpo
8e1473bba9
🚧 feat: add basic copy button to codeblocks 2023-07-06 02:45:54 +02:00
welpo
526c8a1e67
♻️ refactor: simplify theme switching logic
🐛 fix: ensure currentTheme is initialized correctly
2023-05-02 01:33:03 +02:00
welpo
9512bbb194
♻️ refactor: use const in theme initialization
Refactor the theme initialization script to use 'const' instead of 'let'
for the 'currentTheme' variable, as the value is not expected to change
after initialization.

This makes the code more clear and prevents accidental
re-assignment.
2023-04-28 16:38:46 +02:00
welpo
1efb0330e3
🐛 fix: remove flash when navigating in dark-mode
The `initialize-theme.js` script takes care of the following:

  1. If there is a stored theme value in the localStorage, set the theme
 based on that value.
  2. If there is no stored theme value, check the  user's system
  preference (dark or light) and set the theme accordingly.

The new `main.js` takes care of the actual theme switching and listening
to system preference changes (if the user has not manually set a theme).

Now the icons are stored in CSS, and are set according to the current
theme. This allows for having different icons that dynamically switch.

Additionally, wraps social and navigation elements in ul/li.

Fixes #76
2023-04-28 16:20:42 +02:00
welpo
eb63718bbf
🚚 refactor: rename minified KaTeX css 2023-04-28 16:12:14 +02:00
welpo
f9335b3fa4
feat: add KaTeX support 2023-04-15 19:55:57 +02:00
welpo
9a1f5db45c
feat: listen for changes on OS theme to switch accordingly
As long as the visitor has not changed the default theme, the site will
change between dark and light themes matching the OS setting.
2023-02-16 21:23:48 +01:00
serginogal
2f80b0b5ad feat: clean js code 2023-02-16 22:19:58 +09:00
welpo
af80aef00c
feat: change default theme to OS default
Update the theme switcher code to set the default theme to the OS
default, rather than the "light" theme. This provides a more seamless
user experience for users whose OS is set to a dark mode. The current
theme setting in local storage will still be respected if present. This
change was made to improve the accessibility and usability.

Fixes #38
2023-02-15 20:36:26 +01:00
welpo
722d493a9a
💄 style: default light mode 2023-02-10 02:15:05 +01:00
welpo
0b117d1641 first commit 2023-02-02 15:53:54 +01:00