fix missing root breadcrumb on history pages
This commit is contained in:
parent
11a11a5725
commit
d68855a73f
|
@ -96,6 +96,7 @@ pub struct HistoryPage {
|
||||||
pub title: String,
|
pub title: String,
|
||||||
pub commits: Vec<Commit>,
|
pub commits: Vec<Commit>,
|
||||||
pub tree_path: String,
|
pub tree_path: String,
|
||||||
|
pub is_history: bool, // always true
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
|
@ -618,6 +619,7 @@ impl Generator {
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
tree_path: tree_path.to_owned(),
|
tree_path: tree_path.to_owned(),
|
||||||
|
is_history: true,
|
||||||
},
|
},
|
||||||
season: Season::current(),
|
season: Season::current(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -474,8 +474,8 @@ hr {
|
||||||
h1.page-title {
|
h1.page-title {
|
||||||
--recursive-wght: 850;
|
--recursive-wght: 850;
|
||||||
|
|
||||||
margin-top: 1rem;
|
margin-top: 0.2rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 0.2rem;
|
||||||
margin-left: 2.25rem;
|
margin-left: 2.25rem;
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<section class="page-header">
|
<section class="page-header">
|
||||||
<ol class="breadcrumbs">
|
<ol class="breadcrumbs">
|
||||||
{{#if (ne page.tree_path 'index')}}
|
{{#if (or (ne page.tree_path 'index') page.is_history)}}
|
||||||
<li class="root-breadcrumb">
|
<li class="root-breadcrumb">
|
||||||
<a href="{{ config.site }}/">
|
<a href="{{ config.site }}/">
|
||||||
{{{ include_static 'svg/object/logo.svg' }}}
|
{{{ include_static 'svg/object/logo.svg' }}}
|
||||||
|
|
Loading…
Reference in a new issue