Skip to content

Commit

Permalink
Return values from Nikola.path should be str
Browse files Browse the repository at this point in the history
  • Loading branch information
tartley committed Jul 7, 2023
1 parent e15f2b9 commit 03b1fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/nikola.py
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ def path(self, kind, name, lang=None, is_link=False, **kwargs):
return link
else:
# URLs should always use forward slash separators, even on Windows
return pathlib.PurePosixPath(*path)
return str(pathlib.PurePosixPath(*path))

def post_path(self, name, lang):
"""Link to the destination of an element in the POSTS/PAGES settings.
Expand Down

0 comments on commit 03b1fce

Please sign in to comment.