Skip to content

Commit

Permalink
Fix conversion of paths to use forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
tartley committed Jul 4, 2023
1 parent ff131b8 commit e15f2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/galleries.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def make_url(url):

def forward_slashes(path):
"""Given a path, convert directory separators to forward slash, on all platforms."""
return str(pathlib.PurePosixPath(*os.path.split(path)))
return str(pathlib.PurePosixPath(*path.split(os.path.sep)))

items = []
for img, srcimg, title in list(zip(dest_img_list, img_list, img_titles))[:self.kw["feed_length"]]:
Expand Down

0 comments on commit e15f2b9

Please sign in to comment.