diff --git a/README.md b/README.md index a181dd5..f36cf89 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## 1. Introduction -Leanote, your own cloud note. +Leanote, note just a notebook! **Some Features** @@ -109,7 +109,7 @@ Please fork this repository and contribute back using [pull requests](https://gi ## 1. 介绍 -Leanote, 你的私人云笔记! +Leanote, 不只是笔记! **特性** @@ -214,6 +214,6 @@ $> sudo sh run.sh leanote还有很多问题, 如果你喜欢它, 欢迎加入我们一起完善leanote. ## 讨论 -* [leanote bbs](http://bbs.leanote.com) -* [leanote google group](https://groups.google.com/forum/#!forum/leanote) +* [leanote 社区](http://bbs.leanote.com) * QQ群158716820 +* [leanote google group](https://groups.google.com/forum/#!forum/leanote) diff --git a/app/controllers/LeaController.go b/app/controllers/LeaController.go deleted file mode 100644 index 386b120..0000000 --- a/app/controllers/LeaController.go +++ /dev/null @@ -1,52 +0,0 @@ -package controllers - -import ( - "github.com/revel/revel" -// "encoding/json" - . "github.com/leanote/leanote/app/lea" -// "github.com/leanote/leanote/app/types" -// "io/ioutil" -// "math" -// "os" -// "path" -) - -// lea++博客平台 -type Lea struct { - BaseController -} - -// 进入某个用户的博客 -func (c Lea) Index(tag, keywords string) revel.Result { - c.RenderArgs["nav"] = "recommend" - return c.p(tag, keywords, true) -} - -func (c Lea) Latest(tag, keywords string) revel.Result { - c.RenderArgs["nav"] = "latest" - return c.p(tag, keywords, false); -} - -func (c Lea) p(tag, keywords string, recommend bool) revel.Result { - var tags = []string{} - if recommend { - tags = configService.GetGlobalArrayConfig("recommendTags") - } else { - tags = configService.GetGlobalArrayConfig("newTags") - } - // 如果不在所在的tag就不能搜索 - if !InArray(tags, tag) { - tag = "" - } - c.RenderArgs["tag"] = tag - - page := c.GetPage() - pageInfo, blogs := blogService.ListAllBlogs(tag, keywords, recommend, page, 10, "UpdatedTime", false) - - c.RenderArgs["pageInfo"] = pageInfo - c.RenderArgs["blogs"] = blogs - c.RenderArgs["tags"] = tags - c.RenderArgs["keywords"] = keywords - - return c.RenderTemplate("lea/index.html"); -} \ No newline at end of file diff --git a/app/lea/session/session.go b/app/lea/session/session.go index 8f57e38..a5990a1 100644 --- a/app/lea/session/session.go +++ b/app/lea/session/session.go @@ -2,7 +2,7 @@ package session import ( "github.com/robfig/revel" - "leanote/app/lea/memcache" + "github.com/leanote/leanote/app/lea/memcache" // . "leanote/app/lea" ) diff --git a/app/views/Admin/header.html b/app/views/Admin/header.html index 3aa95c7..acb71fe 100644 --- a/app/views/Admin/header.html +++ b/app/views/Admin/header.html @@ -5,7 +5,7 @@ - +