1
Fork 0

fix permalinks

looks like I mistakenly used the branch's `html_id` rather than the `named_id` when generating URLs...
This commit is contained in:
リキ萌 2025-01-19 12:34:17 +01:00 committed by liquidev
parent f5c63359f4
commit 1423483b5c

View file

@ -344,7 +344,7 @@ impl Renderer<'_> {
}; };
let link = match linked_tree { let link = match linked_tree {
Some(tree_path) => format!("{}/{}", self.config().site, tree_path), Some(tree_path) => format!("{}/{}", self.config().site, tree_path),
None => format!("{}/b?{}", self.config().site, &branch.html_id), None => format!("{}/b?{}", self.config().site, &branch.named_id),
}; };
self.button_bar(s, date_time, link_button, &link); self.button_bar(s, date_time, link_button, &link);