all repos — legit-config @ 2074045289a143c87056134fad38375f256b95eb

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>
32git clone https://{{ .servername }}/{{ .name }}
33        </pre>
34      </div>
35    </main>
36  </body>
37</html>
38{{ end }}