commit 0bb22ff9bbba85580d50f5f02d32ec9f131c135a
parent 4b9f541b4462f94dbc49fd886f3d1824e9f88002
Author: Andrew Laack <andrew@laack.co>
Date: Tue, 5 May 2026 10:29:34 -0500
Added comment about index.gmi
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/crawl/main.go b/crawl/main.go
@@ -152,6 +152,12 @@ func writeSiteOutput(outputDir string, body string, currentUrl string) (string,
dirname := u.Host // include subdomains
if missingFilename(filename) {
+
+ // this is presumptuous, albeit quite standard.
+ // main reason for this is to have uniquely identifying names for files.
+ // unfortunately no way to create a file with an empty filename.
+ // this can result in ambiguity between {site}/index.gmi and {site}, but we shall assume they are the same.
+
filename = "index.gmi"
}