12 Commits (3b7fd3db9c33fd3ca6114ca00fffa2a91f682a0a)

Author SHA1 Message Date
Óscar 9d49a65354
feat: add option to show author in post metadata (#322) 9 months ago
welpo 5458b1c533
🎨 style: fix whitespace issues 1 year ago
welpo 2e34e7e897
🐛 fix (format_date): set `%-d %b %Y` default
Documentation was inaccurate.
1 year ago
Ó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.
1 year ago
Óscar 78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2 years ago
Steven Roose c99cf940a7
🐛fix(format_date): actually use `short_date_format` (#119) 2 years ago
welpo eded835d3f
🐛 fix: avoid empty dates when long_date_format is empty 2 years ago
welpo fa9229377d
feat: add multi-language support 2 years ago
welpo 8ff86b17fc
🐛 fix: check `short` value before using config date format
Added a check for whether short is true or false, rather than just
checking if it exists. This ensures that if short is set to false,
it will still use the long date format if it's available.
♻️ refactor: move the conditional around the date output, so it only
needs to check `short` once
2 years ago
welpo 9887fb0a6f
feat: allow dual date-format (short/long) 2 years ago
welpo 4b18391c18
♻️ refactor: format date as "6 July 2049"
Follows Oxford's and other formal style manuals.
2 years ago
welpo 3aa22cb3ad
♻️ refactor: split macros.html in different files
Clearer macros format.
2 years ago