Fix base-url not overriding processed images urls

Closes #418
This commit is contained in:
Vincent Prouillet 2018-09-10 20:29:57 +02:00
parent 5fe4590063
commit ae7a65b51f
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@
- Link checker will not try to validate email links anymore
- Load table and footnote markdown extensions in `markdown` filter
- `get_url` now defaults to not adding a trailing slash
- Fix `--base-url` not overriding processed images URLs
## 0.4.2 (2018-09-03)

View file

@ -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)?;
site.set_output_path(output_dir);
if let Some(b) = base_url {
site.config.base_url = b.to_string();
site.set_base_url(b.to_string());
}
site.load()?;
console::notify_site_size(&site);