Add proper title to 404 page

This commit is contained in:
rsapkf 2021-11-20 02:11:47 -05:00 committed by Eric Huss
parent 46345b8e49
commit 97cb77bbdd
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ impl HtmlHandlebars {
// Set a dummy path to ensure other paths (e.g. in the TOC) are generated correctly // Set a dummy path to ensure other paths (e.g. in the TOC) are generated correctly
data_404.insert("path".to_owned(), json!("404.md")); data_404.insert("path".to_owned(), json!("404.md"));
data_404.insert("content".to_owned(), json!(html_content_404)); data_404.insert("content".to_owned(), json!(html_content_404));
data_404.insert("title".to_owned(), json!("Page not found"));
let rendered = handlebars.render("index", &data_404)?; let rendered = handlebars.render("index", &data_404)?;
let rendered = let rendered =