Hi… I am well aware that this diff view is very suboptimal. It will be fixed when the refactored server comes along!
{category_,}index: Add heading
{{- define "category_index" -}}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/style.css" />
<title>{{ .category_name }}</title>
</head>
<body class="index">
<body class="category-index">
<div class="padding-wrapper">
<h1>
Repos in {{ .category_name }}
</h1>
<ul>
{{- range .repos }}
<li>
<a href="repos/{{ . }}/">{{ . }}</a>
</li>
{{- end }}
</ul>
</div>
</body>
</html>
{{- end -}}
{{- define "index" -}}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/style.css" />
<title>Forge</title>
</head>
<body class="index">
<div class="padding-wrapper">
<h1> Categories </h1>
<ul>
{{- range .categories }}
<li>
<a href="{{ . }}/">{{ . }}</a>
</li>
{{- end }}
</ul>
</div>
</body>
</html>
{{- end -}}