From fbf7de13270e18f1aaf94efe1f439a85bdf83645 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sun, 31 Jul 2022 16:49:52 -0700 Subject: [PATCH] fix: linkmap should not include index portion of uri --- write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/write.go b/write.go index d7b4eb2..856914d 100644 --- a/write.go +++ b/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()