fix missing root breadcrumb on history pages

This commit is contained in:
liquidex 2024-11-04 22:50:04 +01:00
parent 11a11a5725
commit d68855a73f
3 changed files with 5 additions and 3 deletions

View file

@ -96,6 +96,7 @@ pub struct HistoryPage {
pub title: String,
pub commits: Vec<Commit>,
pub tree_path: String,
pub is_history: bool, // always true
}
#[derive(Serialize)]
@ -618,6 +619,7 @@ impl Generator {
})
.collect(),
tree_path: tree_path.to_owned(),
is_history: true,
},
season: Season::current(),
};

View file

@ -474,8 +474,8 @@ hr {
h1.page-title {
--recursive-wght: 850;
margin-top: 1rem;
margin-bottom: 1rem;
margin-top: 0.2rem;
margin-bottom: 0.2rem;
margin-left: 2.25rem;
font-size: 2.5rem;

View file

@ -1,6 +1,6 @@
<section class="page-header">
<ol class="breadcrumbs">
{{#if (ne page.tree_path 'index')}}
{{#if (or (ne page.tree_path 'index') page.is_history)}}
<li class="root-breadcrumb">
<a href="{{ config.site }}/">
{{{ include_static 'svg/object/logo.svg' }}}