Lindenii Project Forge
Login
Commit info
IDc4cab97b49a9b44608e242b148a9029718b6f6fb
AuthorRunxi Yu<me@runxiyu.org>
Author dateMon, 10 Feb 2025 13:51:13 +0800
CommitterRunxi Yu<me@runxiyu.org>
Committer dateMon, 10 Feb 2025 13:54:08 +0800
Actions
Get patch
{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 -}}