Browse Source

typo

master
la Fleur 2 years ago
parent
commit
8f290ec3b5
  1. 1
      src/main.rs

1
src/main.rs

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

Loading…
Cancel
Save