From cb3dfeea75124fc05bc0a435116298b0e5b0e3a2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 Sep 2023 11:01:23 +0100 Subject: [PATCH] Remove found tag page afterwards Save rendering it twice --- hooks/tags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/tags.py b/hooks/tags.py index 966014e..91209de 100644 --- a/hooks/tags.py +++ b/hooks/tags.py @@ -26,6 +26,8 @@ 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 = ""