diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-29 09:25:11 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-29 09:25:11 -0700 |
commit | f3a1d10b2c5df68835f86082cfb722ae679190ff (patch) | |
tree | ab29190a9e513380ff55b297c4ee58be41a70d12 /tools/govanity/templates | |
parent | fix(cgit): write the test correctly (diff) | |
parent | remove unused Makefile (diff) | |
download | world-f3a1d10b2c5df68835f86082cfb722ae679190ff.tar.gz |
Merge remote-tracking branch 'govanity/main'
Change-Id: I4fd7c748648415db1fa9baaa048ba51e186ec268
Diffstat (limited to '')
-rw-r--r-- | tools/govanity/templates/index.html.tpl | 14 | ||||
-rw-r--r-- | tools/govanity/templates/module.html.tpl | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tools/govanity/templates/index.html.tpl b/tools/govanity/templates/index.html.tpl new file mode 100644 index 0000000..fd8fc56 --- /dev/null +++ b/tools/govanity/templates/index.html.tpl @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>golang repo</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + </head> + <body> + <ul> + {{ range $idx, $m := .Repositories }} + <li>go get <a href="{{ $m.Repo }}">{{ $.BaseUrl }}/{{ $m.Name }}/</a></li> + {{end}} + </ul> + </body> +</html> diff --git a/tools/govanity/templates/module.html.tpl b/tools/govanity/templates/module.html.tpl new file mode 100644 index 0000000..fab3414 --- /dev/null +++ b/tools/govanity/templates/module.html.tpl @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <title>{{.Name}}: golang repo</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="go-import" content="{{.BaseUrl}}/{{.Name}} {{.VCS}} {{.Repo}}"> + <meta name="go-source" content="{{.BaseUrl}}/{{.Name}} _ {{.Repo}}/src{/dir} {{.Repo}}/src{/dir}/{file}/#L{line}"> + </head> + <body> + go get {{.BaseUrl}}/{{.Name}} + </body> +</html> |