mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
fix windows link index generation issue caused by backslashes
This commit is contained in:
parent
fcef39bb73
commit
7933665736
2
main.go
2
main.go
@ -69,7 +69,7 @@ func parse(dir, pathPrefix string) []Link {
|
|||||||
target := strings.Split(processTarget(target), "#")[0]
|
target := strings.Split(processTarget(target), "#")[0]
|
||||||
fmt.Printf(" %s\n", target)
|
fmt.Printf(" %s\n", target)
|
||||||
links = append(links, Link{
|
links = append(links, Link{
|
||||||
Source: hugoPathTrim(trim(dir, pathPrefix, ".md")),
|
Source: filepath.ToSlash(hugoPathTrim(trim(dir, pathPrefix, ".md"))),
|
||||||
Target: target,
|
Target: target,
|
||||||
Text: text,
|
Text: text,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user