Browse Source

seo优化

layui
mail_yanpeng@163.com 6 years ago
parent
commit
c46ea0c10e
  1. 1
      controllers/BlogController.go
  2. 1
      controllers/UserController.go
  3. 5
      views/T.header.tpl
  4. 3
      views/blog.html
  5. 2
      views/blogs.html
  6. 2
      views/editblog.html
  7. 2
      views/index.html
  8. 2
      views/login.html
  9. 2
      views/map.html
  10. 2
      views/newblog.html
  11. 2
      views/regist.html
  12. 2
      views/ublogs.html
  13. 2
      views/uinfo.html
  14. 2
      views/ulike.html
  15. 2
      views/unote.html
  16. 2
      views/us.html
  17. 5
      views/user.html

1
controllers/BlogController.go

@ -115,6 +115,7 @@ func (this *BlogController) Get() {
this.Data["HeadImg"] = this.GetSession("headimg")
this.Data["NickName"] = this.GetSession("nickname")
this.Data["IsLogin"] = this.GetSession("nickname") != nil
this.Data["IsDDesc"] = true
this.TplName = "blog.html"
if this.Ctx.Input.GetData("refresh") != true {
service.CountBrows(blog.UserId)

1
controllers/UserController.go

@ -44,6 +44,7 @@ func (this *UserController) UserInfo() {
this.Data["HeadImg"] = this.GetSession("headimg")
this.Data["NickName"] = this.GetSession("nickname")
this.Data["IsLogin"] = this.GetSession("nickname") != nil
this.Data["IsDDesc"] = true
this.TplName = "user.html"
return
}

5
views/T.header.tpl

@ -4,10 +4,13 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{if .IsDDesc }}
{{else}}
<meta name="description" content="云悦,个人随笔是一个面向IT技术人员,提供个人平时工作总结和在线记录学习笔记,个人技术博客,在线云笔记,码农笔录,最新的技术博客,www.aiprose.com">
{{end}}
<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/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>*/}}
<script type="text/javascript" src="/static/js/sui.js"></script>
<script type="text/javascript" src="/static/js/layer.js"></script>
<link type="text/css" rel="styleSheet" href="/static/css/common.css"/>

3
views/blog.html

@ -1,5 +1,6 @@
{{template "header"}}
{{template "header" .}}
<meta name="keywords" content="{{.Blog.Title}}">
<meta name="description" content="{{.Blog.Title}}">
<title>{{.Blog.Title}} - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/blog.css"/>
</head>

2
views/blogs.html

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

2
views/editblog.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<meta name="keywords" content="{{.Blog.Title}}">
<title>{{.Blog.Title}} - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/newblog.css"/>

2
views/index.html

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

2
views/login.html

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

2
views/map.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<meta name="keywords" content="云悦,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<title>谷歌影像图 - 云悦</title>
<script type="text/javascript"

2
views/newblog.html

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

2
views/regist.html

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

2
views/ublogs.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<title>博客 - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/me.css"/>
</head>

2
views/uinfo.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<title>我的资料 - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/me.css"/>
<script type="text/javascript" src="/static/js/upload.js"></script>

2
views/ulike.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<title>博客 - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/me.css"/>
</head>

2
views/unote.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<title>博客 - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/me.css"/>
</head>

2
views/us.html

@ -1,4 +1,4 @@
{{template "header"}}
{{template "header" .}}
<meta name="keywords" content="福利,源码下载,程序部署步骤,云悦,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<title>福利 - 云悦</title>
<link type="text/css" rel="styleSheet" href="/static/css/us.css"/>

5
views/user.html

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

Loading…
Cancel
Save