various path fixes for links to extensions, fix relative paths in links

This commit is contained in:
Jacky Zhao 2023-08-17 00:55:28 -07:00
parent 2dc0ae279c
commit 0c199975f2
16 changed files with 77 additions and 52 deletions
quartz/components/scripts

View file

@ -17,7 +17,7 @@ const isLocalUrl = (href: string) => {
}
return true
}
} catch (e) {}
} catch (e) { }
return false
}
@ -50,6 +50,7 @@ async function navigate(url: URL, isBack: boolean = false) {
history.pushState({}, "", url)
window.scrollTo({ top: 0 })
}
const html = p.parseFromString(contents, "text/html")
let title = html.querySelector("title")?.textContent
if (title) {