Implemented symlinks and mimetype for serve

This commit is contained in:
Nixietab 2026-10-15 21:41:16 -03:00
parent 523e519a3b
commit 605dc5352c
5 changed files with 81 additions and 16 deletions

View file

@ -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>