mirror of
https://github.com/sigmasternchen/grimoire-ssg
synced 2025-03-15 10:08:55 +00:00
fix: reversed it not a method
This commit is contained in:
parent
3ee5c40bf6
commit
8a21a9d5b6
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def render_templates(data, context, config):
|
||||||
files_written = 0
|
files_written = 0
|
||||||
|
|
||||||
# render templates in reverse order, so included renderings can be used
|
# render templates in reverse order, so included renderings can be used
|
||||||
for entry in data.reversed():
|
for entry in reversed(data.reversed):
|
||||||
if "template" in entry:
|
if "template" in entry:
|
||||||
template_path = os.path.realpath(os.path.dirname(entry["filename"]) + "/" + entry["template"])
|
template_path = os.path.realpath(os.path.dirname(entry["filename"]) + "/" + entry["template"])
|
||||||
template_dir = os.path.dirname(template_path)
|
template_dir = os.path.dirname(template_path)
|
||||||
|
|
Loading…
Reference in a new issue