change directory paths
Some checks failed
test / cargo test (push) Failing after 1m40s

This commit is contained in:
2024-09-30 21:29:25 +02:00
parent 1ce8ccfdd5
commit da78b80587
9 changed files with 13 additions and 23 deletions

View File

@ -117,7 +117,7 @@ pub fn parse_html(markdown: &str, generate_images: bool) -> String {
}
let dev_only_img_path =
Path::new("../static/").join(dest_url.strip_prefix("/").unwrap_or(&dest_url));
Path::new("static/").join(dest_url.strip_prefix("/").unwrap_or(&dest_url));
let img_dimensions = image_dimensions(&dev_only_img_path).unwrap();
let (max_width, max_height) = get_max_resolution(