From d68855a73f034d8539c622a33706d5e8f2ba89d3 Mon Sep 17 00:00:00 2001 From: liquidev Date: Mon, 4 Nov 2024 22:50:04 +0100 Subject: [PATCH] fix missing root breadcrumb on history pages --- crates/treehouse/src/generate.rs | 2 ++ static/css/main.css | 4 ++-- template/components/_header.hbs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/treehouse/src/generate.rs b/crates/treehouse/src/generate.rs index c6c2f3a..423240e 100644 --- a/crates/treehouse/src/generate.rs +++ b/crates/treehouse/src/generate.rs @@ -96,6 +96,7 @@ pub struct HistoryPage { pub title: String, pub commits: Vec, 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(), }; diff --git a/static/css/main.css b/static/css/main.css index 6df2ede..b640b02 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -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; diff --git a/template/components/_header.hbs b/template/components/_header.hbs index 2900e57..b05cbea 100644 --- a/template/components/_header.hbs +++ b/template/components/_header.hbs @@ -1,6 +1,6 @@