Clear SITE_CONTENT on full reload

This commit is contained in:
Vincent Prouillet 2021-06-07 21:00:00 +02:00
parent 2289b2f55a
commit c728a8692b

View file

@ -228,6 +228,8 @@ fn create_new_site(
include_drafts: bool,
ws_port: Option<u16>,
) -> Result<(Site, String)> {
SITE_CONTENT.write().unwrap().clear();
let mut site = Site::new(root_dir, config_file)?;
let base_address = format!("{}:{}", base_url, interface_port);