mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
fix: move linkmap to public for proper copying
This commit is contained in:
parent
eec81e45b4
commit
ef8b49f7f4
2
write.go
2
write.go
@ -50,7 +50,7 @@ func write(links []Link, contentIndex ContentIndex, toIndex bool, out string, ro
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writeLinkMap(contentIndex *ContentIndex, root string) error {
|
func writeLinkMap(contentIndex *ContentIndex, root string) error {
|
||||||
fp := path.Join(root, "linkmap")
|
fp := path.Join(root, "public", "linkmap")
|
||||||
file, err := os.OpenFile(fp, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
|
file, err := os.OpenFile(fp, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user