From c7407d31e0815768c27ad88c0e23d1aa4f5afad6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 22:33:44 +0800 Subject: index: Categories -> groups again --- handle_index.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'handle_index.go') diff --git a/handle_index.go b/handle_index.go index ebbc4e0..4301eed 100644 --- a/handle_index.go +++ b/handle_index.go @@ -10,15 +10,15 @@ func handle_index(w http.ResponseWriter, r *http.Request) { entries, err := os.ReadDir(config.Git.Root) if err != nil { - _, _ = w.Write([]byte("Error listing categories: " + err.Error())) + _, _ = w.Write([]byte("Error listing groups: " + err.Error())) return } - categories := []string{} + groups := []string{} for _, entry := range entries { - categories = append(categories, entry.Name()) + groups = append(groups, entry.Name()) } - data["categories"] = categories + data["groups"] = groups err = templates.ExecuteTemplate(w, "index", data) if err != nil { -- cgit v1.2.3