From 359499b1058a6b8cd4cc99aadd407e0a050ba4d7 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Feb 2025 23:17:28 +0100 Subject: ref: Make summary more lean Now it will only show the first 3 tags to better distribute the page content. --- pkg/handler/git/handler.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/handler') diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index b825ea4..034d5c2 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -138,6 +138,10 @@ func (g *GitHandler) Summary(w http.ResponseWriter, r *http.Request) error { return err } + if len(tags) > 3 { + tags = tags[:3] + } + gitList := &templates.GitItemPage{ Name: name, Ref: ref.Name().Short(), -- cgit v1.2.3