mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 14:38:14 +00:00
various path fixes for links to extensions, fix relative paths in links
This commit is contained in:
parent
2dc0ae279c
commit
0c199975f2
16 changed files with 77 additions and 52 deletions
quartz/components/scripts
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue