just fucking work 😭
This commit is contained in:
parent
6c38a5034e
commit
28372f0ee3
|
@ -14,7 +14,7 @@ def get_local_path_from_url(url):
|
||||||
try:
|
try:
|
||||||
idx = parts.index("main")
|
idx = parts.index("main")
|
||||||
relpath = "/".join(parts[idx + 1:])
|
relpath = "/".join(parts[idx + 1:])
|
||||||
return f"blog/{relpath}"
|
return f"{relpath}"
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue