fix #54: root all image urls
This commit is contained in:
parent
3b3e6ec3b2
commit
f192f9a23d
3 changed files with 9 additions and 4 deletions
|
@ -11,9 +11,6 @@
|
|||
fetchData().then(({content}) => {
|
||||
const links = [...document.getElementsByClassName("internal-link")]
|
||||
links.forEach(li => {
|
||||
console.log(li.dataset.src.replace(baseUrl, ""))
|
||||
console.log(content[li.dataset.src.replace(baseUrl, "")])
|
||||
console.log(content)
|
||||
const linkDest = content[li.dataset.src.replace(baseUrl, "")]
|
||||
// const linkDest = content[li.dataset.src]
|
||||
if (linkDest) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue