From 6ae1db5c7464cb1463ea68c773a1d51150b5b108 Mon Sep 17 00:00:00 2001 From: "CHEN, CHUN" Date: Thu, 15 May 2025 00:09:07 +0800 Subject: [PATCH] feat: localize new taxonomy names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tag links now use the actual taxonomy name for the URL and the displayed label is wrapped in a translation macro instead of the previous placeholder-based logic. - Simplify the taxonomy tag URL by passing the name directly and add translation support for the tag label. - Introduce a new taxon_name_i18n variable to translate the taxonomy name and swap in this localized value for the page title and “See all” link, while also simplifying the all-taxa URL by passing taxonomy.name directly to get_url. Signed-off-by: CHEN, CHUN --- templates/article.html | 2 +- templates/partials/articles.html | 2 +- templates/taxonomy_single.html | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/article.html b/templates/article.html index ce1be1f..2b606ee 100644 --- a/templates/article.html +++ b/templates/article.html @@ -62,7 +62,7 @@ {%- if page.taxonomies -%} {%- for name, taxon in page.taxonomies %}