forked from lucat1/statik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.gohtml
38 lines (38 loc) · 1.59 KB
/
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
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<meta name="viewport" content="width=device-width">
<meta property="og:title" content="{{ .Root.URL.Path }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .Root.URL }}" />
<meta property="og:image" content="/img/unibo512.png" />
<meta property="og:site_name" content="CartaBinaria" />
<style>{{ .Stylesheet }}</style>
<title>Index of {{ .Root.URL.Path }}</title>
<!-- icons -->
<link rel=icon href="/img/unibo32.ico" sizes="32x32" type="image/x-icon">
<link rel=icon href="/img/unibo128.ico" sizes="128x128" type="image/x-icon">
<link rel=icon href="/img/unibo180.ico" sizes="180x180" type="image/x-icon">
<link rel=icon href="/img/unibo192.ico" sizes="192x192" type="image/x-icon">
</head>
<body>
<h1>
Index of <a href="https://cartabinaria.github.io/">cartabinaria</a>/{{ 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/cartabinaria/statik">statik</a> on {{ .Today.Format "02 Jan 06 15:04 MST" }}</p>
</body>
</html>