diff options
author | diamondburned <datutbrus@gmail.com> | 2021-07-06 23:54:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 02:54:54 -0400 |
commit | 9e16e80f3c9ae663e3ecf596a578a852172e38fb (patch) | |
tree | 1710c38c73690ec7fa25cd412dfb8b15355dac8d | |
parent | d882211080cbb97f5e1cfdd87be6874eb1a9430a (diff) |
fileserver: Fix browse name_dir_first sorting (#4218)
This commit fixes the `sortByNameDirFirst` variable inside fileserver to
match what browse's default template has.
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
-rw-r--r-- | modules/caddyhttp/fileserver/browsetplcontext.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browsetplcontext.go b/modules/caddyhttp/fileserver/browsetplcontext.go index 489e8c0..d420c48 100644 --- a/modules/caddyhttp/fileserver/browsetplcontext.go +++ b/modules/caddyhttp/fileserver/browsetplcontext.go @@ -264,7 +264,7 @@ func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before(l.Items[j const ( sortByName = "name" - sortByNameDirFirst = "name_dir_first" + sortByNameDirFirst = "namedirfirst" sortBySize = "size" sortByTime = "time" ) |