109 Commits

Author SHA1 Message Date
welpo
86ab1c5f06
🐛 fix: path to main.css 2023-07-31 17:23:31 +02:00
welpo
e7bd988a52
🐛 fix: use relative path to main.css 2023-07-31 17:17:41 +02:00
welpo
7ed295db3a
💬 refactor: translate xsl stylesheets 2023-07-31 17:04:34 +02:00
smtbook
e7dc5eb44e
fix: multilingual issues in feeds and 'nav.html' 2023-07-31 17:04:34 +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
fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2023-07-05 02:43:07 +02:00
welpo
a6dfd4d1ba
🐛 fix: remove leading slash from css href 2023-06-27 00:06:54 +02:00
welpo
eb8f630fde
💄 style: smaller title and "Recent Posts" text 2023-06-26 21:56:55 +02:00
welpo
0494a54f57
💄 style: add styling to infobox 2023-06-26 02:12:49 +02:00
welpo
fc591f549c
💄 style: add title suffix & reduce RSS icon size 2023-06-25 22:59:29 +02:00
welpo
1b60be8c9d
🚧 feat: style xml feed 2023-06-24 03:06:54 +02:00
welpo
ab29511d5e
feat: add multilingual quote shortcode 2023-06-05 23:22:17 +02:00
Óscar
90d7188787
Merge branch 'main' into feat/multilingual-support 2023-05-25 18:03:24 +02:00
welpo
fb061a1469
feat: allow using emojis as favicon 🌱 2023-05-25 14:31:03 +02:00
welpo
534969de11
feat: include layout features in font subset 2023-05-22 19:44:41 +02:00
welpo
fa9229377d
feat: add multi-language support 2023-05-22 19:12:03 +02:00
welpo
67aad3ef74
💄 style: standarise font rendering across browsers
Use Source Serif ttf instead of otf for proper font rendering in Chromium.

Use Cascadia Code SemiLight to reduce filesize.
2023-05-02 02:03:13 +02:00
welpo
526c8a1e67
♻️ refactor: simplify theme switching logic
🐛 fix: ensure currentTheme is initialized correctly
2023-05-02 01:33:03 +02:00
welpo
a5981e6fdd
🐛 fix: remove flashing from header text (Firefox)
Loads a subset of the sans-serif font for the header.

Fixes #75
2023-04-29 15:11:13 +02:00
welpo
1c06c99047
⬆️ feat(fonts): use woff2 & update fonts
⬆️ Update Source Serif to latest version
 Update Inter font to v4 beta
📸 Update screenshots to reflect font changes
2023-04-28 18:03:17 +02:00
welpo
0c8e0d228c
🚚 refactor: rename katex minified css 2023-04-28 16:45:05 +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
18cab7d37c
🍱 style: update project images 2023-04-16 17:37:31 +02:00
welpo
77dc2be14b
🍱 style: update project images 2023-04-16 17:31:28 +02:00
welpo
e422c405cb
📝 docs: lowercase 'tabi' 2023-04-16 17:00:15 +02:00
welpo
698d4ebf74
🍱 style: greater resolution 2023-04-16 13:38:35 +02:00
welpo
b841969a8f
feat(shortcodes): update image path retrieval and dimensions in shortcodes
- Use `get_url` function to generate correct image paths
- Retrieve image dimensions with `get_image_metadata` function
- Update shortcodes: dimmable_image, dual_theme_image, and invertible_image

These changes reduce layout shifts.
2023-04-16 03:21:41 +02:00
welpo
35cea7222c
🍱 docs: update nani image 2023-04-16 02:35:20 +02:00
welpo
a2ea8c3f88
📝 docs: update projects 2023-04-16 00:51:06 +02:00
welpo
f9335b3fa4
feat: add KaTeX support 2023-04-15 19:55:57 +02:00
welpo
38a38fa606
💄 style: Promise I will never go blonde like Kanye⁉️ 2023-03-09 00:41:21 +01:00
welpo
b3dc5396b4
feat: add dual image support for switching themes 2023-02-25 22:28:43 +01:00
Óscar
586b5617b2
Merge pull request #39 from welpo/feature/default-theme-switcher
Change default theme to OS default; listen to OS default theme changes and switch accordingly (as long as there's no user preference set)
2023-02-17 13:47:59 +01: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
bd8dd87cd5
feat: add dimmable-image shortcode for dark theme
Reduces contrast and brightness of images when the dark theme is active.
Useful when invertable-image is not appropriate (photographs, paintings,
colour drawings…)
2023-02-16 00:22:31 +01: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
84b4469b07
️ improvement: switch from webp to svg icons
Saves a bit of space :)
2023-02-14 23:21:32 +01:00
welpo
bd0dbaab1a
️ improvement: use webp instead of png 2023-02-11 21:38:40 +01:00
welpo
7a69759112
🍱 improvement: use webp instead of png 2023-02-11 21:35:22 +01:00