mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
website: fix guide urls related to blogs (#2431)
This commit is contained in:
@@ -212,6 +212,9 @@ module.exports = function (ty) {
|
||||
if (parsed.scheme || parsed.host || !parsed.path.endsWith(".md")) {
|
||||
return link
|
||||
}
|
||||
if (parsed.path.startsWith("../../blog")) {
|
||||
parsed.path = parsed.path.replace("../../blog", "/blog")
|
||||
}
|
||||
parsed.path = parsed.path.replace(/\.md$/, ".html")
|
||||
return uri.serialize(parsed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user