feat: reworked the category editing

This commit is contained in:
2026-07-24 09:00:12 +02:00
parent d9085cf681
commit 7a3c5683e7
23 changed files with 471 additions and 193 deletions

View File

@@ -921,9 +921,7 @@ fn build_language_routes(
let slug = slugify(&category);
let display_name = category_settings
.get(&category)
.and_then(|settings| settings.title.as_deref())
.map(str::trim)
.filter(|title| !title.is_empty())
.and_then(|settings| settings.title_for(language, main_language(metadata)))
.unwrap_or(&category);
routes.extend(paginated_route_specs(
&records,