legit/templates/index.html
Anirudh Oppiliappan 01f27147ba
routes: index view
2022-12-12 21:33:09 +05:30

27 lines
520 B
HTML

{{ define "index" }}
<html>
{{ template "head" . }}
<header>
<h1>{{ .meta.Title }}</h1>
<h2>{{ .meta.Description }}</h2>
</header>
<body>
{{ template "nav" . }}
<main>
<table>
<tr>
<td>repository</td>
<td>last active</td>
</tr>
{{ range $repo, $lc := .info }}
<tr>
<td><a href="/{{ $repo }}">{{ $repo }}</a></td>
<td>{{ $lc }}</td>
</tr>
{{ end }}
</table>
</main>
</body>
</html>
{{ end }}