Skip to content

Commit

Permalink
html: Always use / for paths in Page.href
Browse files Browse the repository at this point in the history
  • Loading branch information
Tina-otoge committed Apr 27, 2024
1 parent e3d59a5 commit 21b2bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sssimp/generators/html.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import functools
import logging
from datetime import datetime
from pathlib import Path

import sssimp
from sssimp import jinja
Expand Down Expand Up @@ -41,7 +42,7 @@ def stat(self):

@property
def href(self):
return path_strip(self.target, sssimp.OUTPUT_DIR)
return "/".join(Path(path_strip(self.target, sssimp.OUTPUT_DIR)).parts)

@property
def name(self):
Expand Down

0 comments on commit 21b2bd9

Please sign in to comment.