Lindenii Project Forge
Login

server

Lindenii Forge’s main backend daemon
Commit info
ID
c4cab97b49a9b44608e242b148a9029718b6f6fb
Author
Runxi Yu <me@runxiyu.org>
Author date
Mon, 10 Feb 2025 13:51:13 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Mon, 10 Feb 2025 13:54:08 +0800
Actions
{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 -}}