From d486986b084120827ca3486fcb1b701cf16bf3c8 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 61dda6232210805de21a24cddc737a9c5fb0cda1 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" .}}