diff --git a/image-fill.py b/image-fill.py index 47a8e81..8568f6e 100644 --- a/image-fill.py +++ b/image-fill.py @@ -42,7 +42,7 @@ images = list(image_dir.rglob("*.png")) + \ # Generate the img tag for each file imgs = [] for i in images: - src = str(i) + src = str(i.relative_to(i.parents[1])) imgs.append(f'') with FileInput(html_path, inplace=True) as html: