Skip to content

Commit

Permalink
fix: pass parent to MkPage.from_file in str2url
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 11, 2023
1 parent 7fcb67f commit 1a0c0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mknodes/navs/navparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def str2node(
page = mk.MkPage(name, parent=parent, **kwargs)
page += mk.MkText(path, render_jinja=True)
return page
return mk.MkPage.from_file(path, title=name, **kwargs)
return mk.MkPage.from_file(path, title=name, parent=parent, **kwargs)


def from_list(
Expand Down

0 comments on commit 1a0c0b3

Please sign in to comment.