Implemented symlinks and mimetype for serve
This commit is contained in:
parent
523e519a3b
commit
605dc5352c
5 changed files with 81 additions and 16 deletions
|
|
@ -166,7 +166,7 @@ footer a:hover {
|
|||
{{if .HasParent}}<tr><td><a href="../">../</a></td><td class="num ty">-</td><td class="num sz"></td><td class="num mod"></td></tr>{{end}}
|
||||
{{range .Rows}}
|
||||
<tr{{if .IsDir}} class="dir"{{end}}>
|
||||
<td><a href="{{.URL}}"{{if not .IsDir}} download{{end}}>{{.Name}}</a></td>
|
||||
<td><a href="{{.URL}}">{{.Name}}</a></td>
|
||||
<td class="num ty">{{.Type}}</td>
|
||||
<td class="num sz">{{if .IsDir}}-{{else}}{{.SizeS}}{{end}}</td>
|
||||
<td class="num mod">{{.ModS}}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue