all repos — legit @ 9649b3ed2b252cab6ab4076d58814790582f07f0

web frontend for git

templates/file.html (view raw)

 1{{ define "file" }}
 2<html>
 3{{ template "head" . }}
 4
 5  <header>
 6    <h1>{{ .meta.Title }}</h1>
 7    <h2>{{ .meta.Description }}</h2>
 8  </header>
 9  <body>
10    {{ template "nav" . }}
11    <main>
12    <pre>
13{{ range .linecount }}
14<a id="#L{{ . }}" href="#{{ . }}">{{ . }}</a>
15{{- end -}}
16    </pre>
17      <pre>
18{{ .content }}
19      </pre>
20    </main>
21  </body>
22</html>
23{{ end }}