From b452434a782f161f91dc220f432fb84eb634123c Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 8 Nov 2021 17:21:50 +0800 Subject: [PATCH] change show contributors nums --- templates/repo/home.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index cbba6f3ee..34c3a3121 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -4,7 +4,7 @@ font-size: 1.0em; margin-bottom: 1.0rem; } -#contributorInfo > a:nth-child(n+25){ +#contributorInfo > a:nth-child(n+26){ display:none; } #contributorInfo > a{ @@ -329,7 +329,13 @@

+ {{$lenCon := len .ContributorInfo}} + {{if lt $lenCon 25 }} 贡献者 ({{len .ContributorInfo}}) + {{else}} + 贡献者 ({{len .ContributorInfo}}+) + {{end}} +