1
Fork 0

Get env once

This commit is contained in:
Jake Howard 2023-09-15 22:06:39 +01:00
parent 76fa263379
commit 425f87c609
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -13,8 +13,10 @@ on_build_error = on_pre_build = on_post_build
def on_files(files: Files, config):
tags = set()
template = config["theme"].get_env().get_template("tag-template.md")
list_template = config["theme"].get_env().get_template("tag-list-template.md")
env = config["theme"].get_env()
template = env.get_template("tag-template.md")
list_template = env.get_template("tag-list-template.md")
for file in files.documentation_pages():
with open(file.abs_src_path) as f: