feat: add per-language date format configuration (#556)

This commit is contained in:
Óscar 2025-08-07 14:00:48 +02:00 committed by GitHub
parent 3a40ae5a83
commit 2064beae78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 115 additions and 7 deletions

View file

@ -235,6 +235,13 @@ long_date_format = "%d %B %Y"
# Default is "6th July 2049" in English and "%-d %B %Y" in other languages.
short_date_format = ""
# Per-language date format overrides.
# Examples: Spanish uses "3 de febrero de 2024", German uses "3. Februar 2024"
date_formats = [
{ lang = "es", long = "%d de %B de %Y", short = "%-d %b %Y" },
{ lang = "de", long = "%d. %B %Y", short = "%d.%m.%Y" },
]
# Custom separator used in title tag and posts metadata (between date, time to read, and tags).
separator = "•"