all repos — legit-config @ 500907e27222f4bda6dfd3dd2b8cc28f6f709a0d

Configs for my instance of [legit](https://git.icyphox.sh/legit)

templates/file.html (view raw)

 1{{ define "file" }}
 2<html>
 3  {{ template "head" . }}
 4  {{ template "repoheader" . }}
 5  <body>
 6    {{ template "nav" . }}
 7    <main>
 8      <p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p>
 9      {{if .chroma }}
10      <div class="chroma-file-wrapper">
11      {{ .content }}
12      </div>
13      {{else}}
14      <div class="file-wrapper">
15      <table>
16        <tbody><tr>
17            <td class="line-numbers">
18              <pre>
19            {{- range .linecount }}
20 <a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
21            {{- end -}}
22              </pre>
23            </td>
24            <td class="file-content">
25              <pre>
26             {{- .content -}}
27              </pre>
28            </td>
29        </tbody></tr>
30      </table>
31      </div>
32      {{end}}
33    </main>
34  </body>
35</html>
36{{ end }}