summaryrefslogtreecommitdiffstats
path: root/templates/repo.html
blob: e388de32c7032113333b68676a639d68dd68f01c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ define "repo" }}
<html>
{{ template "head" . }}

  <header>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </header>
  <body>
    {{ template "nav" . }}
    <main>
      {{ range .files }}
      {{ if .IsFile }}
      <p>{{ .Mode }} {{ .Name }} {{ .Size }} </p>
      {{ else }}
      <p>d-------- {{ .Name}}/</p>
      {{ end }}
      {{ end }}
    </main>
  </body>
</html>
{{ end }}