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 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(),
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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' }}}
|
||||
|
|
Loading…
Reference in a new issue