yirenyishi 6 years ago
parent
commit
793020bd50
  1. 3
      controllers/BlogController.go
  2. 1
      routers/BlogRouter.go
  3. 4
      static/js/wangEditor.min.js
  4. 1
      views/T.header.tpl
  5. 5
      views/blog.html
  6. 59
      views/blog1.html
  7. 3
      views/blogs.html
  8. 5
      views/editblog.html
  9. 1
      views/login.html
  10. 1
      views/map.html
  11. 5
      views/newblog.html
  12. 4
      views/note.html
  13. 1
      views/regist.html
  14. 10
      views/test.html
  15. 1
      views/user.html

3
controllers/BlogController.go

@ -163,9 +163,6 @@ func (this *BlogController) New() {
} }
this.TplName = "newblog.html" this.TplName = "newblog.html"
} }
func (this *BlogController) Blog1() {
this.TplName = "blog1.html"
}
func (this *BlogController) BlogsPage() { func (this *BlogController) BlogsPage() {
cats, errcat := service.GetCats() cats, errcat := service.GetCats()

1
routers/BlogRouter.go

@ -13,5 +13,4 @@ func init() {
beego.Router("/blog/del/:id([0-9]+)", &controllers.BlogController{}, "post:Del") beego.Router("/blog/del/:id([0-9]+)", &controllers.BlogController{}, "post:Del")
beego.Router("/blogs", &controllers.BlogController{}, "get:BlogsPage") beego.Router("/blogs", &controllers.BlogController{}, "get:BlogsPage")
beego.Router("/blog/new", &controllers.BlogController{}, "get:New") beego.Router("/blog/new", &controllers.BlogController{}, "get:New")
beego.Router("/blog1", &controllers.BlogController{}, "get:Blog1")
} }

4
static/js/wangEditor.min.js

File diff suppressed because one or more lines are too long

1
views/T.header.tpl

@ -5,7 +5,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="个人随笔是一个面向IT技术人员,提供个人平时工作总结和在线记录学习笔记,个人技术博客,在线云笔记,码农笔录,最新的技术博客,www.aiprose.com"> <meta name="description" content="个人随笔是一个面向IT技术人员,提供个人平时工作总结和在线记录学习笔记,个人技术博客,在线云笔记,码农笔录,最新的技术博客,www.aiprose.com">
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<link rel="stylesheet" href="//g.alicdn.com/sui/sui3/0.0.18/css/sui.min.css"> <link rel="stylesheet" href="//g.alicdn.com/sui/sui3/0.0.18/css/sui.min.css">
<script type="text/javascript" src="//g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script> <script type="text/javascript" src="//g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
{{/*<script type="text/javascript" src="//g.alicdn.com/sui/sui3/0.0.18/js/sui.min.js"></script>*/}} {{/*<script type="text/javascript" src="//g.alicdn.com/sui/sui3/0.0.18/js/sui.min.js"></script>*/}}

5
views/blog.html

@ -1,5 +1,6 @@
{{template "header"}} {{template "header"}}
<title>博客 - 个人随笔</title> <meta name="keywords" content="{{.Blog.Title}}">
<title>{{.Blog.Title}} - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/blog.css"/> <link type="text/css" rel="styleSheet" href="/static/css/blog.css"/>
</head> </head>
<body> <body>
@ -36,7 +37,7 @@
{{range .Top}} {{range .Top}}
<div> <div>
<a href=""><p <a href="/blog/{{.Id}}"><p
style="max-width:245px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{.Title}}</p> style="max-width:245px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{.Title}}</p>
</a> </a>
</div> </div>

59
views/blog1.html

@ -1,59 +0,0 @@
{{template "header"}}
<title>博客 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/blog.css"/>
</head>
<body>
<div class="root-container">
{{template "nav" .}}
<div class="blog-root">
<h1 style="text-align: center">{{.Blog.Title}}</h1>
<div style="text-align: center">
<span>
头像
</span>
<span>
链接
</span>
<span>
时间:
<span></span>
</span>
<span>
阅读数:
</span>
<span>
标签:
<span class="label label-danger">Danger</span>
</span>
</div>
<div>
<span>正文</span>
<pre>
</pre>
<br>
<span>正文</span>
<pre>
</pre>
<br>
<span>正文</span>
<pre>
</pre>
<br>
<span>正文</span>
<pre>
</pre>
<br>
</div>
<div>
<textarea class="form-control" rows="3" placeholder="是不是得说点啥"></textarea>
<a class="btn btn-default" href="#" role="button" >链接</a>
</div>
</div>
</div>
</body>
</html>

3
views/blogs.html

@ -1,5 +1,6 @@
{{template "header"}} {{template "header"}}
<title>首页 - 个人随笔</title> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>博客列表 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/index.css"/> <link type="text/css" rel="styleSheet" href="/static/css/index.css"/>
</head> </head>
<body> <body>

5
views/editblog.html

@ -1,7 +1,8 @@
{{template "header"}} {{template "header"}}
<title>博客 - 个人随笔</title> <meta name="keywords" content="{{.Blog.Title}}">
<title>{{.Blog.Title}} - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/newblog.css"/> <link type="text/css" rel="styleSheet" href="/static/css/newblog.css"/>
<script src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script> <script src="/static/js/wangEditor.min.js"></script>
</head> </head>
<body> <body>
<div class="root-container"> <div class="root-container">

1
views/login.html

@ -1,4 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>登录 - 个人随笔</title> <title>登录 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/login.css"/> <link type="text/css" rel="styleSheet" href="/static/css/login.css"/>
</head> </head>

1
views/map.html

@ -1,4 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>谷歌影像图 - 个人随笔</title> <title>谷歌影像图 - 个人随笔</title>
<script type="text/javascript" <script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.10&key=74c9586333eaf8d6191c576cf59739fa"></script> src="https://webapi.amap.com/maps?v=1.4.10&key=74c9586333eaf8d6191c576cf59739fa"></script>

5
views/newblog.html

@ -1,7 +1,8 @@
{{template "header"}} {{template "header"}}
<title>博客 - 个人随笔</title> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>发布博客 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/newblog.css"/> <link type="text/css" rel="styleSheet" href="/static/css/newblog.css"/>
<script src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script> <script src="/static/js/wangEditor.min.js"></script>
</head> </head>
<body> <body>
<div class="root-container"> <div class="root-container">

4
views/note.html

@ -8,13 +8,13 @@
content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<link rel="stylesheet" href="//g.alicdn.com/sui/sui3/0.0.18/css/sui.min.css"> <link rel="stylesheet" href="//g.alicdn.com/sui/sui3/0.0.18/css/sui.min.css">
{{/*<script type="text/javascript" src="//g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>*/}} {{/*<script type="text/javascript" src="//g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>*/}}
<title>笔记 - 个人随笔</title> <title>我的笔记 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/menu-reset.css"/> <link type="text/css" rel="styleSheet" href="/static/css/menu-reset.css"/>
<link type="text/css" rel="styleSheet" href="/static/css/notemenu.css"/> <link type="text/css" rel="styleSheet" href="/static/css/notemenu.css"/>
<link type="text/css" rel="styleSheet" href="/static/css/menunav.css"/> <link type="text/css" rel="styleSheet" href="/static/css/menunav.css"/>
<script src="/static/js/menu.js"></script> <!-- Modernizr --> <script src="/static/js/menu.js"></script> <!-- Modernizr -->
<script src="/static/js/jquery-1.11.1.min.js"></script> <script src="/static/js/jquery-1.11.1.min.js"></script>
<script src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script> <script src="/static/js/wangEditor.min.js"></script>
<style> <style>
.w-e-toolbar { .w-e-toolbar {
height: 40px; height: 40px;

1
views/regist.html

@ -1,4 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>注册 - 个人随笔</title> <title>注册 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/login.css"/> <link type="text/css" rel="styleSheet" href="/static/css/login.css"/>
</head> </head>

10
views/test.html

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

1
views/user.html

@ -1,4 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="{{.User.NickName}},{{.User.NickName}}主页,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose">
<title>【{{.User.NickName}}】个人主页 - 个人随笔</title> <title>【{{.User.NickName}}】个人主页 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/u.css"/> <link type="text/css" rel="styleSheet" href="/static/css/u.css"/>
</head> </head>

Loading…
Cancel
Save