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))