From d7bfb4a2313d2233f6315f119d5ce552d840dfe3 Mon Sep 17 00:00:00 2001 From: Emilia Date: Wed, 22 Nov 2023 01:45:51 -0500 Subject: [PATCH] Fix for image-fill --- image-fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: