fix: linkmap should not include index portion of uri

This commit is contained in:
Jacky Zhao 2022-07-31 16:49:52 -07:00
parent d3f5261c4f
commit fbf7de1327

View File

@ -61,7 +61,7 @@ func writeLinkMap(contentIndex *ContentIndex, root string) error {
if path == "/" { if path == "/" {
_, _ = datawriter.WriteString("/index.html /\n") _, _ = datawriter.WriteString("/index.html /\n")
} else { } else {
_, _ = datawriter.WriteString(path + "/$1.{html} " + path + "/$1\n") _, _ = datawriter.WriteString(path + "/index.{html} " + path + "/\n")
} }
} }
datawriter.Flush() datawriter.Flush()