all repos — legit @ 7fe98772b079cca83b854e8f8a6be5dc55c10483

fork of git.icyphox.sh/legit

templates/file.html

{{ define "file" }}
<html>
{{ template "head" . }}
  <title>{{.name }} &mdash; {{ .path }}</title>

  {{ template "repoheader" . }}
  <body>
    {{ template "nav" . }}
    <main>
      <div class="file-wrapper">
        <div class="line-numbers">
          {{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
          {{- end -}}
        </div>
        <div>
          <span></span>
          <pre>
            {{- .content -}}
          </pre>
        </div>
    </main>
  </body>
</html>
{{ end }}