Stop removing tag metadata file
This breaks URL resolution for them
This commit is contained in:
parent
a8087a2508
commit
c25fb3e76c
1 changed files with 0 additions and 3 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue