forked from x/icebergs
opt some
This commit is contained in:
parent
98683cc779
commit
6509bb8290
@ -95,7 +95,7 @@ func init() {
|
|||||||
web.Index.MergeCommands(ice.Commands{"/x/": {Actions: aaa.WhiteAction(), Hand: func(m *ice.Message, arg ...string) {
|
web.Index.MergeCommands(ice.Commands{"/x/": {Actions: aaa.WhiteAction(), Hand: func(m *ice.Message, arg ...string) {
|
||||||
if m.RenderVoid(); m.Option("go-get") == "1" {
|
if m.RenderVoid(); m.Option("go-get") == "1" {
|
||||||
p := _git_url(m, path.Join(arg...))
|
p := _git_url(m, path.Join(arg...))
|
||||||
m.RenderResult(kit.Format(`<meta name="go-import" content="%s">`, kit.Format(`%s git %s`, strings.Split(p, "://")[1], p)))
|
m.RenderResult(kit.Format(`<meta name="go-import" content="%s">`, kit.Format(`%s git %s`, strings.TrimSuffix(strings.Split(p, "://")[1], ".git"), p)))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch repos, service := _server_param(m, arg...); service {
|
switch repos, service := _server_param(m, arg...); service {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user