display page title a bit more proudly

This commit is contained in:
りき萌 2024-02-07 13:32:47 +01:00
parent cac1084138
commit 6d887da5cd
3 changed files with 33 additions and 8 deletions

View file

@ -198,6 +198,7 @@ impl Generator {
pub struct Page {
pub title: String,
pub breadcrumbs: String,
pub tree_path: Option<String>,
pub tree: String,
}
@ -211,6 +212,9 @@ impl Generator {
page: Page {
title: roots.attributes.title.clone(),
breadcrumbs,
tree_path: treehouse
.tree_path(parsed_tree.file_id)
.map(|s| s.to_owned()),
tree,
},
};