diff --git a/src/command/build/runner.rs b/src/command/build/runner.rs index 42deb7b..b8361dc 100644 --- a/src/command/build/runner.rs +++ b/src/command/build/runner.rs @@ -4,6 +4,7 @@ use std::sync::Arc; use std::sync::Mutex; use super::stylesheet::Stylesheet; +use super::walk_fs::walk_fs; use crate::cli::parameters::BuildArgs; use crate::command::build::render::SiteRenderer; use crate::config::Config; @@ -60,6 +61,8 @@ async fn get_output_directory(config: &Config) -> Result { } async fn get_post_directories(config: &Config) -> Result, CustomError> { + walk_fs(config.get_posts_directory(), async |entry| Ok(true)).await?; + let mut ret = Vec::new(); if !config.get_posts_directory().exists() { return Ok(ret);