From c25fb3e76c65d0f89a3d32e335eb6c0db68fabf6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 14 Sep 2023 21:57:10 +0100 Subject: [PATCH] Stop removing tag metadata file This breaks URL resolution for them --- hooks/tags.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/hooks/tags.py b/hooks/tags.py index 25fd343..08410ac 100644 --- a/hooks/tags.py +++ b/hooks/tags.py @@ -26,12 +26,9 @@ def on_files(files: Files, config): if found_tag_page: with open(found_tag_page.abs_src_path) as f: content, _ = meta.get_data(f.read()) - - files.remove(found_tag_page) else: content = "" - filename = f"{tag}.md" write_file(template.render(tag=tag, content=content).encode(), os.path.join(TAGS_TEMP_DIR, filename))