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
1 changed files with 0 additions and 3 deletions

View File

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