git-preview @ main

static git web frontend but with images and html previews + code truncation

templates/repo-header.html

 1{{ define "repoheader" }}
 2<header>
 3  <h2>
 4  {{ if not .single }}<a href="/">all repos</a>
 5   &mdash; {{ end }}{{ .displayname }}
 6    {{ if .ref }}
 7    <span class="ref">@ {{ .ref }}</span>
 8    {{ end }}
 9  </h2>
10  <h3 class="desc">{{ .desc }}</h3>
11</header>
12{{ end }}