wrap up url escape bug; fix pausedUP bug

This commit is contained in:
Mukhtar Akere
2025-04-17 19:12:28 +01:00
parent 8c78da3f69
commit f34a371274
5 changed files with 12 additions and 8 deletions

View File

@@ -109,11 +109,11 @@ const directoryTemplate = `
<h1>Index of {{.Path}}</h1>
<ul>
{{if .ShowParent}}
<li><a href="{{ .ParentPath}}" class="parent-dir"><span class="file-number"></span>Parent Directory</a></li>
<li><a href="{{urlpath .ParentPath}}" class="parent-dir"><span class="file-number"></span>Parent Directory</a></li>
{{end}}
{{range $index, $file := .Children}}
<li>
<a href="{{(printf "%s/%s" $.Path $file.RawName )}}">
<a href="{{urlpath (printf "%s/%s" $.Path $file.Name)}}">
<span class="file-number">{{add $index 1}}.</span>
<span class="file-name">{{$file.Name}}{{if $file.IsDir}}/{{end}}</span>
<span class="file-info">