diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:46:50 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:46:50 +0800 |
commit | 0a5f821f78425d97c0797803e57aa2c2d6f982da (patch) | |
tree | 1047018864276e8b99c4375aa436ce1ff162789c /templates | |
parent | *.go: Linting (diff) | |
download | forge-0a5f821f78425d97c0797803e57aa2c2d6f982da.tar.gz forge-0a5f821f78425d97c0797803e57aa2c2d6f982da.tar.zst forge-0a5f821f78425d97c0797803e57aa2c2d6f982da.zip |
category_index: Add a repo index for each category
Diffstat (limited to 'templates')
-rw-r--r-- | templates/category_index.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/category_index.html b/templates/category_index.html new file mode 100644 index 0000000..1ae0c64 --- /dev/null +++ b/templates/category_index.html @@ -0,0 +1,20 @@ +{{- define "category_index" -}} +<!DOCTYPE html> +<html> +<head> +<link rel="stylesheet" href="/static/style.css" /> +<title>{{ .category_name }}</title> +</head> +<body class="index"> +<div class="padding-wrapper"> +<ul> +{{- range .repos }} +<li> +<a href="repos/{{ . }}/">{{ . }}</a> +</li> +{{- end }} +</ul> +</div> +</body> +</html> +{{- end -}} |