all repos — elgit @ de046690c01cf90c906ee74b8180d10f17757fb7

fork of legit: web frontend for git, written in go

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 <nilix@nilfm.cc>

Derek Stevens
commit

de046690c01cf90c906ee74b8180d10f17757fb7

parent

3060c752f8bbc4852939ee7f15732e9752d0c6ec

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M templates/head.htmltemplates/head.html
@@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/style.css" type="text/css"> <link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css"> <link rel="icon" type="image/png" size="32x32" href="/static/legit.png"> - {{ if .servername }} + {{ if and .servername .gomod }} <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}"> {{ end }} <!-- other meta tags here -->