Get env once
This commit is contained in:
parent
76fa263379
commit
425f87c609
1 changed files with 4 additions and 2 deletions
|
@ -13,8 +13,10 @@ on_build_error = on_pre_build = on_post_build
|
||||||
def on_files(files: Files, config):
|
def on_files(files: Files, config):
|
||||||
tags = set()
|
tags = set()
|
||||||
|
|
||||||
template = config["theme"].get_env().get_template("tag-template.md")
|
env = config["theme"].get_env()
|
||||||
list_template = config["theme"].get_env().get_template("tag-list-template.md")
|
|
||||||
|
template = env.get_template("tag-template.md")
|
||||||
|
list_template = env.get_template("tag-list-template.md")
|
||||||
|
|
||||||
for file in files.documentation_pages():
|
for file in files.documentation_pages():
|
||||||
with open(file.abs_src_path) as f:
|
with open(file.abs_src_path) as f:
|
||||||
|
|
Loading…
Reference in a new issue