mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
28 lines
741 B
HTML
28 lines
741 B
HTML
|
{{ $path := .Path }}
|
||
|
{{ $prev := .Previous }}
|
||
|
{{ $prefix := .Prefix }}
|
||
|
{{ $singleprefix := .SinglePrefix }}
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>{{ $path }} | PiNas</title>
|
||
|
<link rel="stylesheet" href="/assets/styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<main>
|
||
|
<div>
|
||
|
<h1>{{$path}}</h1>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<a href="/{{$prefix}}{{$prev}}">..</a> <br>
|
||
|
{{range $file := .Files}}
|
||
|
{{ if $file.IsDir }}
|
||
|
<a href="/{{$prefix}}/{{$path}}/{{$file.Name}}">{{$file.Name}}</a> <br>
|
||
|
{{ end }}
|
||
|
{{ if not $file.IsDir }}
|
||
|
<a href="/{{$singleprefix}}/{{$path}}/{{$file.Name}}">{{$file.Name}}</a> <br>
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
</div>
|
||
|
</main>
|
||
|
</body>
|
||
|
</html>
|