legit/templates/index.html

31 lines
604 B
HTML
Raw Permalink Normal View History

2022-12-12 16:03:09 +00:00
{{ define "index" }}
<html>
{{ template "head" . }}
2022-12-18 05:44:38 +00:00
<title>
{{ .meta.Title }}
</title>
2022-12-12 16:03:09 +00:00
<header>
<h1>{{ .meta.Title }}</h1>
<h2>{{ .meta.Description }}</h2>
</header>
<body>
<main>
2022-12-17 07:17:54 +00:00
<div class="index-headings small-heading">
2022-12-17 07:16:09 +00:00
<div>repository</div>
<div>description</div>
<div>idle</div>
</div>
2022-12-17 07:17:54 +00:00
<div class="index">
2022-12-17 07:16:09 +00:00
{{ range .info }}
<div><a href="/{{ .Name }}">{{ .Name }}</a></div>
2022-12-17 16:03:04 +00:00
<div class="desc">{{ .Desc }}</div>
2022-12-17 07:16:09 +00:00
<div>{{ .Idle }}</div>
{{ end }}
</div>
2022-12-12 16:03:09 +00:00
</main>
</body>
</html>
{{ end }}