21 Commits

Author SHA1 Message Date
Óscar
32a2d5094b
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.

- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
  Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
2023-09-12 18:58:58 +02:00
Óscar
78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2023-09-01 23:29:11 +02:00
welpo
36a9bac765
️chore(theme-switcher): show tooltip when hovering over icon 2023-08-25 01:53:24 +02:00
welpo
113a7f4e5d
feat(theme-switcher): hide button if JS is disabled 2023-08-03 00:12:00 +02:00
welpo
f9c18b0398
feat: optional trailing slash in menu links
Enabled by default.

Drops the `$BASE_URL` transformation to avoid confusion (#99).
2023-08-01 14:11:05 +02:00
smtbook
e7dc5eb44e
fix: multilingual issues in feeds and 'nav.html' 2023-07-31 17:04:34 +02:00
welpo
f710b62631
🐛 fix: properly check for theme_switcher setting 2023-07-07 21:58:47 +02:00
welpo
5ac69fe21d
🐛 fix: show language switcher if there's more than 1 language 2023-05-30 14:00:00 +02:00
welpo
fa9229377d
feat: add multi-language support 2023-05-22 19:12:03 +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
1803987555
feat: make JS light/dark toggle optional 2023-04-15 00:42:27 +02:00
welpo
cd2ab356be
💄 style: redesign post listing and other minor changes 2023-03-05 19:58:19 +01:00
welpo
2f4d0658d8
🐛 fix: rename sun icon reference 2023-02-15 01:33:43 +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
c6e5de7dee
️ improvement: use webp instead of png 2023-02-11 21:48:47 +01:00
welpo
095b9d0d07 🐛 fix: add end-of-file newline 2023-02-06 02:20:56 +01:00
welpo
049df81d6c 🐛 fix: allow for relative paths everywhere
Allows hosting the page on subdirectories.
2023-02-03 19:05:28 +01:00
Óscar
1c69169ef0
Merge pull request #9 from welpo/fix/theme-switcher-alt
🐛 fix: alt text for moon/sun icons (theme switcher)
2023-02-03 14:02:48 +01:00
welpo
4edbcf08b3 🐛 fix: alt text for moon/sun icons (theme switcher) 2023-02-03 14:01:35 +01:00
serginogal
dcaa705b56 🐛 fix: trailing space in front of nav-links 2023-02-03 18:45:18 +09:00
welpo
0b117d1641 first commit 2023-02-02 15:53:54 +01:00