Browse Source

Fix base-url not overriding processed images urls

Closes #418
index-subcmd
Vincent Prouillet 5 years ago
parent
commit
ae7a65b51f
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/cmd/build.rs

+ 1
- 0
CHANGELOG.md 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)



+ 1
- 1
src/cmd/build.rs 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);


Loading…
Cancel
Save