-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpage.gohtml
28 lines (28 loc) · 898 Bytes
/
page.gohtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width">
<style>{{ .Stylesheet }}</style>
<title>Index of {{ .Root.URL.Path }}</title>
</head>
<body>
<h1>
Index of /{{ range $i,$p := .Parts }}<a href="{{ $p.URL }}">{{ $p.Name }}</a>/{{ end }}
</h1>
<hr>
<div class="g">
{{ range $i,$d := .Root.Directories }}
<a href="{{ $d.URL }}" class="d">{{ $d.Name }}</a>
<p>{{ $d.ModTime.Format "02 Jan 06 15:04 MST" }}</p>
<p>{{ $d.Size }}</p>
{{ end }}
{{ range $i,$f := .Root.Files }}
<a href="{{ $f.URL }}">{{ $f.Name }}</a>
<p>{{ $f.ModTime.Format "02 Jan 06 15:04 MST" }}</p>
<p>{{ $f.Size }}</p>
{{ end }}
</div>
<hr>
<p>Generated by <a href="https://github.com/lucat1/statik">statik</a> on {{ .Today.Format "02 Jan 06 15:04 MST" }}</p>
</body>
</html>