24 Commits

Author SHA1 Message Date
Óscar
14ccb208cf
🎨 refactor: turn macros into partials & sort CSS (#146) 2023-09-12 21:28:33 +02:00
Ó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
3344f80539
🚑️ fix(footer): render footer again
#128 broke it.
2023-09-01 14:38:46 +02:00
Óscar
f61c9ec309
feat(settings): add hierarchy-based setting overrides (#128) 2023-09-01 14:03:37 +02:00
Óscar
b73f7f5d93
feat(HTML): respect external_links_… config (#126) 2023-08-30 01:38:27 +02:00
Óscar
0e3a4af49b
feat: add link to commit history on updated articles (#109) 2023-08-15 02:02:23 +02:00
welpo
07ceddcc00
feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex.
- Allow custom ToC placement with shortcode or "<!-- toc -->" marker.
- Increase max depth for ToC to 4.
- Update Documentation for the above features.
 - Move ToC generation to a macro file.
2023-08-14 15:08:22 +02:00
welpo
c78c7f5bd1
feat: allow setting the default theme
Used as fallback when JS is disabled and `theme_switcher` is enabled.

If `default_theme` is unset, it defaults to "light".

Used as single theme when `theme_switcher` is disabled.
2023-08-08 00:47:24 +02:00
welpo
edcfa359ef
feat: global/individual toggle for KaTeX and copy button
Allow KaTeX and copy button to be enabled globally or for individual posts.
2023-08-02 19:38:04 +02:00
Óscar
5cdc18e688
feat: add backlinks to footnotes (#101) 2023-08-02 18:35:27 +02:00
welpo
4b43229d0a
🚚 chore(js): rename minified files 2023-07-17 20:40:48 +02:00
welpo
19d120019b
feat: add support for giscus & utterances comments 2023-07-12 18:44:28 +02:00
welpo
2dec139e41
feat: add copy button to code blocks 2023-07-07 22:03:47 +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
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
9887fb0a6f
feat: allow dual date-format (short/long) 2023-03-10 23:25:54 +01:00
welpo
4b18391c18
♻️ refactor: format date as "6 July 2049"
Follows Oxford's and other formal style manuals.
2023-03-06 00:07:41 +01:00
welpo
a8e49cfedf
♻️ refactor: use consistent pagination 2023-03-05 19:48:16 +01:00
welpo
53d2624133
🐛 fix: use set_title macro to set proper titles
Fixes #33
2023-02-22 23:28:14 +01:00
welpo
3aa22cb3ad
♻️ refactor: split macros.html in different files
Clearer macros format.
2023-02-21 19:39:54 +01:00
welpo
095b9d0d07 🐛 fix: add end-of-file newline 2023-02-06 02:20:56 +01:00
welpo
0b117d1641 first commit 2023-02-02 15:53:54 +01:00