mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
fix: linkmap should not include index portion of uri
This commit is contained in:
parent
d3f5261c4f
commit
fbf7de1327
2
write.go
2
write.go
@ -61,7 +61,7 @@ func writeLinkMap(contentIndex *ContentIndex, root string) error {
|
||||
if path == "/" {
|
||||
_, _ = datawriter.WriteString("/index.html /\n")
|
||||
} else {
|
||||
_, _ = datawriter.WriteString(path + "/$1.{html} " + path + "/$1\n")
|
||||
_, _ = datawriter.WriteString(path + "/index.{html} " + path + "/\n")
|
||||
}
|
||||
}
|
||||
datawriter.Flush()
|
||||
|
Loading…
Reference in New Issue
Block a user