This commit is contained in:
la Fleur 2020-11-12 11:32:31 +01:00
parent 133e1e4aac
commit 8f290ec3b5
1 changed files with 0 additions and 1 deletions

View File

@ -65,7 +65,6 @@ fn show(content: Content) -> Template {
fn index() -> io::Result<Template> { fn index() -> io::Result<Template> {
let cwd = std::env::current_dir()?; let cwd = std::env::current_dir()?;
let title = String::from(cwd.to_str().unwrap().split("/").last().unwrap()); let title = String::from(cwd.to_str().unwrap().split("/").last().unwrap());
//println!("{}", title);
let contents = list_contents()?; let contents = list_contents()?;
let context = IndexContext { title: title, items: contents }; let context = IndexContext { title: title, items: contents };
Ok(Template::render("index", &context)) Ok(Template::render("index", &context))