diff --git a/main.go b/main.go index 7922ad8..4e5b794 100644 --- a/main.go +++ b/main.go @@ -208,17 +208,6 @@ func (this *Application) Repopage(w http.ResponseWriter, r *http.Request, repoNa extraBadgesMd := ` ![](https://img.shields.io/badge/build-success-brightgreen)` extraBadgesMd += ` [![](https://img.shields.io/badge/vcs-git-green?logo=git)](` + repoURL + `)` - // Convert [`Written in LANG` "\n"] to badge - // This was special syntax used by codesite - writtenInPrefix := `Written in ` - for i, line := range lines { - if strings.HasPrefix(line, writtenInPrefix) { - extraBadgesMd += ` ![](https://img.shields.io/badge/written%20in-` + url.QueryEscape(line[len(writtenInPrefix):]) + `-blue)` - lines = append(lines[0:i], lines[i+1:]...) - break - } - } - // Inject more badges to 3rd line; or, create badges on 3rd line if there are none already if len(lines) >= 3 && strings.Contains(lines[2], `shields.io`) { lines[2] += ` ` + extraBadgesMd