mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-07 06:06:40 +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/plugins/transformers
|
@ -79,9 +79,8 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
|||
) {
|
||||
if (!isAbsoluteUrl(node.properties.src)) {
|
||||
let dest = node.properties.src as RelativeURL
|
||||
const ext = path.extname(node.properties.src)
|
||||
dest = node.properties.src = transformLink(curSlug, dest, transformOptions)
|
||||
node.properties.src = dest + ext
|
||||
node.properties.src = dest
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue