From 45c2beece021db32c47a32f5e45573307e2edd73 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 9 May 2023 10:19:11 -0600 Subject: recognize gophermap files as menu types in dir listings --- contrib/fs/gopher.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/fs') diff --git a/contrib/fs/gopher.go b/contrib/fs/gopher.go index e7e4ab9..dc5b312 100644 --- a/contrib/fs/gopher.go +++ b/contrib/fs/gopher.go @@ -133,6 +133,8 @@ i {{ $hostname }} {{ $port }} func GuessGopherItemType(filepath string) sr.Status { ext := path.Ext(filepath) switch ext { + case "gophermap": + return gopher.MenuType case "txt", "gmi": return gopher.TextFileType case "gif", "png", "jpg", "jpeg": -- cgit v1.2.3