Merge pull request #4 from bur3ku/master

This commit is contained in:
Jacky Zhao 2021-10-24 22:50:36 -07:00 committed by GitHub
commit 439af69fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}) })