all repos — legit-config @ e9134296fc9888b3300b1648be715e07d6494a83

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

templates/repo.html (view raw)

 1{{ define "repo" }}
 2<html>
 3{{ template "head" . }}
 4
 5{{ template "repoheader" . }}
 6
 7  <body>
 8    {{ template "nav" . }}
 9    <main>
10      {{ $repo := .name }}
11      <div class="log">
12        {{ range .commits }}
13        <div>
14          <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div>
15          <pre>{{ .Message }}</pre>
16        </div>
17        <div class="commit-info">
18          {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a>
19          <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
20        </div>
21        {{ end }}
22      </div>
23{{- if .readme }}
24      <article class="readme">
25        {{- .readme -}}
26      </article>
27{{- end -}}
28
29      <div class="clone-url">
30      <strong>clone</strong>
31        <pre>git clone https://{{ .servername }}/{{ .name }}</pre>
32      </div>
33    </main>
34  </body>
35</html>
36{{ end }}