95fba3f357
Html page title for every chapter in the book is created by the following code: ```rust let title: String; { let book_title = ctx .data .get("book_title") .and_then(serde_json::Value::as_str) .unwrap_or(""); title = ch.name.clone() + " - " + book_title; } ``` If the `book.toml` file is missing, and `book_title` parameter is empty, there's an awkward ` - ` string hanging at the end of each chapter's title. This PR adds a `match` case to handle that kind of situation. |
||
---|---|---|
.. | ||
helpers | ||
hbs_renderer.rs | ||
mod.rs | ||
search.rs |