|
@@ -9,7 +9,7 @@ pub fn build(config_file: &str, base_url: Option<&str>, output_dir: &str) -> Res |
|
|
let mut site = Site::new(env::current_dir().unwrap(), config_file)?; |
|
|
let mut site = Site::new(env::current_dir().unwrap(), config_file)?; |
|
|
site.set_output_path(output_dir); |
|
|
site.set_output_path(output_dir); |
|
|
if let Some(b) = base_url { |
|
|
if let Some(b) = base_url { |
|
|
site.config.base_url = b.to_string(); |
|
|
|
|
|
|
|
|
site.set_base_url(b.to_string()); |
|
|
} |
|
|
} |
|
|
site.load()?; |
|
|
site.load()?; |
|
|
console::notify_site_size(&site); |
|
|
console::notify_site_size(&site); |
|
|