1
Fork 0

Stop removing tag metadata file

This breaks URL resolution for them
This commit is contained in:
Jake Howard 2023-09-14 21:57:10 +01:00
parent a8087a2508
commit c25fb3e76c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -26,12 +26,9 @@ def on_files(files: Files, config):
if found_tag_page: if found_tag_page:
with open(found_tag_page.abs_src_path) as f: with open(found_tag_page.abs_src_path) as f:
content, _ = meta.get_data(f.read()) content, _ = meta.get_data(f.read())
files.remove(found_tag_page)
else: else:
content = "" content = ""
filename = f"{tag}.md" filename = f"{tag}.md"
write_file(template.render(tag=tag, content=content).encode(), os.path.join(TAGS_TEMP_DIR, filename)) write_file(template.render(tag=tag, content=content).encode(), os.path.join(TAGS_TEMP_DIR, filename))