Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Commit 392a1f5

Browse files
committed
fix(dir): add repo slug in file links
1 parent 7cf0ef9 commit 392a1f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmpl/dir.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ <h1>Index of {{ .Ref.FilePath }}/ on {{ .Ref.Type }} <i>{{ .Ref.Name }}</i></h1>
77
<h2>Git Remote: {{ .Ref.Client.CurrentRepo.Url }}</h2>
88
<hr>
99
<pre>
10-
{{ if ne .Ref.FilePath "" }}<a href="/{{ JoinPaths $.Ref.Type $.Ref.Name }}/-/{{ .ParentPath }}">../</a>{{ end }}
11-
{{ range $value := .Files }}<a href="/{{ JoinPaths $.Ref.Type $.Ref.Name }}/-/{{ JoinPaths $.Ref.FilePath . }}">{{ . }}<br></a>{{ end }}
10+
{{ if ne .Ref.FilePath "" }}<a href="/{{ JoinPaths $repo.Slug $.Ref.Type $.Ref.Name }}/-/{{ .ParentPath }}">../</a>{{ end }}
11+
{{ range $value := .Files }}<a href="/{{ JoinPaths $repo.Slug $.Ref.Type $.Ref.Name }}/-/{{ JoinPaths $.Ref.FilePath . }}">{{ . }}<br></a>{{ end }}
1212
</pre>
1313
<hr>
1414
</body></html>

0 commit comments

Comments
 (0)