diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-09 10:19:11 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-09 10:19:17 -0600 |
commit | 45c2beece021db32c47a32f5e45573307e2edd73 (patch) | |
tree | 884e71e2f249d407d000bc862a5d9dd0dd27fe24 /contrib/fs/gopher.go | |
parent | 5b849792511ea3d838e8dc12561994f07514374a (diff) |
recognize gophermap files as menu types in dir listings
Diffstat (limited to 'contrib/fs/gopher.go')
-rw-r--r-- | contrib/fs/gopher.go | 2 |
1 files changed, 2 insertions, 0 deletions
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": |