From de046690c01cf90c906ee74b8180d10f17757fb7 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Tue, 31 Jan 2023 21:30:40 -0700 Subject: only add go meta import tag if go.mod exists in repo root This is a multipart message in MIME format. Pretty self-explanitory :3 Signed-off-by: Derek Stevens --- routes/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/routes.go') diff --git a/routes/routes.go b/routes/routes.go index 3124d1b..4d99ab0 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -151,6 +151,7 @@ func (d *deps) RepoIndex(w http.ResponseWriter, r *http.Request) { data["commits"] = commits data["desc"] = getDescription(path) data["servername"] = d.c.Server.Name + data["gomod"] = isGoModule(gr) if err := t.ExecuteTemplate(w, "repo", data); err != nil { log.Println(err) -- cgit