mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
Merge branch 'master' of https://github.com/jackyzha0/hugo-obsidian
This commit is contained in:
commit
00ad08df2f
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