mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 23:08:14 +00:00
fix shortest path for non-md files, mobile fix
This commit is contained in:
parent
075ac33474
commit
d8d9dd22c9
4 changed files with 62 additions and 49 deletions
quartz/plugins/transformers
|
@ -99,9 +99,10 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
|
|||
typeof node.properties.src === "string"
|
||||
) {
|
||||
if (!isAbsoluteUrl(node.properties.src)) {
|
||||
let dest = node.properties.src as RelativeURL
|
||||
const ext = path.extname(node.properties.src)
|
||||
node.properties.src =
|
||||
transformLink(joinSegments("assets", node.properties.src)) + ext
|
||||
dest = node.properties.src = transformLink(dest)
|
||||
node.properties.src = dest + ext
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue