From e6b3da8d17ccef9c24cb637f7ab29075af055f9b Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 6 May 2024 18:34:03 +0200 Subject: [PATCH] make author and series details show in nav --- rusty-library/src/handlers/author.rs | 2 +- rusty-library/src/handlers/series_single.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rusty-library/src/handlers/author.rs b/rusty-library/src/handlers/author.rs index 4363462..bfaffdb 100644 --- a/rusty-library/src/handlers/author.rs +++ b/rusty-library/src/handlers/author.rs @@ -29,7 +29,7 @@ pub async fn handler( let mut context = Context::new(); context.insert("title", &author.name); - context.insert("nav", &author.name); + context.insert("nav", "authors"); context.insert("books", &books); TEMPLATES diff --git a/rusty-library/src/handlers/series_single.rs b/rusty-library/src/handlers/series_single.rs index 8e37e2d..764afe4 100644 --- a/rusty-library/src/handlers/series_single.rs +++ b/rusty-library/src/handlers/series_single.rs @@ -25,7 +25,7 @@ pub async fn handler( let mut context = Context::new(); context.insert("title", &series.name); - context.insert("nav", &series.name); + context.insert("nav", "series"); context.insert("books", &books); TEMPLATES