diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 20:01:09 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 20:01:09 +0800 |
commit | d0cf88cfc3d2c328f9e398ba94a770141f3a7be4 (patch) | |
tree | 8734557044fa622fdc71290453484429746fe3ed /handle_category_index.go | |
parent | repo_{index,tree_dir}.html, style.css: Darker table title row (diff) | |
download | forge-d0cf88cfc3d2c328f9e398ba94a770141f3a7be4.tar.gz forge-d0cf88cfc3d2c328f9e398ba94a770141f3a7be4.tar.zst forge-d0cf88cfc3d2c328f9e398ba94a770141f3a7be4.zip |
category_index -> category_repos
Diffstat (limited to 'handle_category_index.go')
-rw-r--r-- | handle_category_index.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handle_category_index.go b/handle_category_index.go index d81899a..f9b201c 100644 --- a/handle_category_index.go +++ b/handle_category_index.go @@ -7,7 +7,7 @@ import ( "strings" ) -func handle_category_index(w http.ResponseWriter, r *http.Request) { +func handle_category_repos(w http.ResponseWriter, r *http.Request) { data := make(map[string]any) category_name := r.PathValue("category_name") data["category_name"] = category_name @@ -26,7 +26,7 @@ func handle_category_index(w http.ResponseWriter, r *http.Request) { } data["repos"] = repos - err = templates.ExecuteTemplate(w, "category_index", data) + err = templates.ExecuteTemplate(w, "category_repos", data) if err != nil { _, _ = w.Write([]byte("Error rendering template: " + err.Error())) return |