make it more obvious when a branch has more content to it

This commit is contained in:
りき萌 2023-08-28 19:18:02 +02:00
parent 9c65492aff
commit 1dfb3ccef9
5 changed files with 40 additions and 5 deletions

View file

@ -111,7 +111,13 @@ pub fn branch_to_html(
},
Some(broken_link_callback),
);
if has_children {
s.push_str("<span class=\"branch-summary\">")
}
markdown::push_html(s, treehouse, config, markdown_parser);
if has_children {
s.push_str("</span>")
}
if let Content::Link(link) = &branch.attributes.content {
write!(