diff --git a/src/main.rs b/src/main.rs index 32f69e7..17287b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,7 +109,10 @@ async fn render( if let Ok(entry) = entry { let path = entry.path(); if path.is_file() { - return Some(path.strip_prefix(&state.garden_dir).unwrap().to_path_buf()); + let stripped_path = path.strip_prefix(&state.garden_dir).unwrap().to_path_buf(); + if !stripped_path.to_str().unwrap().starts_with(".") { + return Some(stripped_path); + } } } None