feat: allow custom archive date format (#557)

This commit is contained in:
2025-08-16 18:31:48 +07:00
parent ddf2c54880
commit 3fcf0f71b0
3 changed files with 30 additions and 3 deletions

View File

@@ -240,14 +240,18 @@ code_block_name_links = true
compact_tags = false
short_date_format = ""
# Date format used for the archive page.
# Default is "06 July" in English and "%d %b" in other languages.
archive_date_format = ""
# Per-language date format overrides.
# Examples: Spanish uses "3 de febrero de 2024", German uses "3. Februar 2024"
date_formats = [
{ lang = "ru", long = "%d %B %Y", short = "%-d %b %Y" },
{ lang = "ru", long = "%d %B %Y", short = "%-d %b %Y", archive = "%d %b" },
{ lang = "en", long = "%d. %B %Y", short = "%d.%m.%Y" },
]
tag_sorting = "frequency"
menu = [