From 9e07aae92100755d9696fb13627d3518bd92bb1d Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Mon, 17 May 2021 10:46:05 +0800 Subject: [PATCH 1/2] mod index --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 7237fedff..e8e33104d 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -285,7 +285,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Head("/", func() string { return "" }) - m.Get("/", routers.Home) + m.Get("/", routers.ExploreRepos) m.Get("/dashboard", routers.Dashboard) m.Group("/explore", func() { m.Get("", func(ctx *context.Context) { From 436e43ef5026bfc5453d391b56b0fe3a2e5319ea Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Wed, 19 May 2021 15:31:54 +0800 Subject: [PATCH 2/2] add baidu tongji --- templates/base/head.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index ce5d9892d..4392e5536 100755 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -176,6 +176,15 @@ {{end}} {{template "custom/header" .}} + {{template "custom/body_outer_pre" .}}