Merge pull request #24 from jackyzha0/dev

This commit is contained in:
Jacky Zhao 2022-07-31 12:23:54 -07:00 committed by GitHub
commit 23e6c5dc31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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