Browse Source

Merge branch 'develop' of git.openi.org.cn:OpenI/aiforge into mod-dashboard

tags/v1.21.12.1
lewis 4 years ago
parent
commit
7471fcc1e1
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      routers/routes/routes.go
  2. +9
    -0
      templates/base/head.tmpl

+ 1
- 1
routers/routes/routes.go View File

@@ -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) {


+ 9
- 0
templates/base/head.tmpl View File

@@ -176,6 +176,15 @@
{{end}}
{{template "custom/header" .}}

<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?7c4ef0a24be6109ab22e63c832ab21cf";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
{{template "custom/body_outer_pre" .}}


Loading…
Cancel
Save