fix: clean up some problems from the implementations
This commit is contained in:
@@ -915,7 +915,9 @@ fn terminate_child(child: &mut std::process::Child) {
|
||||
let _ = child.kill();
|
||||
}
|
||||
|
||||
fn prepend_tool_paths(_command: &mut Command) {
|
||||
fn prepend_tool_paths(command: &mut Command) {
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
let _ = command;
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
let mut paths = vec![
|
||||
|
||||
@@ -674,6 +674,12 @@ fn build_language_routes(
|
||||
|
||||
for (category, records) in category_posts {
|
||||
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())
|
||||
.unwrap_or(&category);
|
||||
routes.extend(paginated_route_specs(
|
||||
&records,
|
||||
per_page,
|
||||
@@ -682,7 +688,7 @@ fn build_language_routes(
|
||||
language_root_prefix(language, metadata)
|
||||
),
|
||||
page_title.clone(),
|
||||
Some(json!({"kind": "category", "name": category})),
|
||||
Some(json!({"kind": "category", "name": display_name})),
|
||||
category_settings
|
||||
.get(&category)
|
||||
.and_then(|settings| settings.list_template_slug.clone()),
|
||||
|
||||
Reference in New Issue
Block a user