Browse Source

seo优化

layui
mail_yanpeng@163.com 6 years ago
parent
commit
891d4322f1
  1. 2
      views/blog.html
  2. 2
      views/blogs.html
  3. 29
      views/index.html
  4. 31
      views/login.html
  5. 27
      views/map.html
  6. 2
      views/note.html
  7. 2
      views/regist.html
  8. 65
      views/us.html
  9. 36
      views/user.html

2
views/blog.html

@ -134,7 +134,7 @@
} }
}, 'json') }, 'json')
}) })
debugger
/*百度收录*/ /*百度收录*/
var bp = document.createElement('script'); var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0]; var curProtocol = window.location.protocol.split(':')[0];

2
views/blogs.html

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

29
views/index.html

@ -1,5 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<title>首页 - 个人随笔</title> <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>
@ -47,4 +47,31 @@
{{template "footer"}} {{template "footer"}}
</div> </div>
</body> </body>
<script>
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
})
</script>
</html> </html>

31
views/login.html

@ -1,5 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,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>
@ -55,7 +55,7 @@
console.log(data) console.log(data)
if (data.Status == 1) { if (data.Status == 1) {
layer.msg(data.Msg, {icon: 5}); layer.msg(data.Msg, {icon: 5});
}else{ } else {
layer.msg("登录成功", {icon: 6}); layer.msg("登录成功", {icon: 6});
window.location.href = "/" window.location.href = "/"
} }
@ -63,4 +63,31 @@
}) })
}) })
</script> </script>
<script>
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
})
</script>
</html> </html>

27
views/map.html

@ -1,5 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,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>
@ -53,5 +53,30 @@
}) })
infoWindow.open(mapObj, new AMap.LngLat(108.963148, 34.232709)) infoWindow.open(mapObj, new AMap.LngLat(108.963148, 34.232709))
}) })
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
})
</script> </script>
</html> </html>

2
views/note.html

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="个人随笔是一个面向IT技术人员,提供个人平时工作总结和在线记录学习笔记,个人技术博客,在线云笔记,码农笔录,最新的技术博客,www.aiprose.com"> <meta name="description" content="个人随笔是一个面向IT技术人员,提供个人平时工作总结和在线记录学习笔记,个人技术博客,在线云笔记,码农笔录,最新的技术博客,www.aiprose.com">
<meta name="keywords" <meta name="keywords"
content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,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>

2
views/regist.html

@ -1,5 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,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>

65
views/us.html

@ -1,5 +1,5 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords" content="关于我们,源码下载,程序部署步骤,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<title>关于我们 - 个人随笔</title> <title>关于我们 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/us.css"/> <link type="text/css" rel="styleSheet" href="/static/css/us.css"/>
</head> </head>
@ -10,24 +10,24 @@
<p>个人随笔2.0(golang)版本正式上线</p> <p>个人随笔2.0(golang)版本正式上线</p>
</div> </div>
<div class="us-root"> <div class="us-root">
<div style="width: 450px"> <div style="width: 450px">
<p>·项目源码: <a href="https://git.coding.net/yirenyishi/beeblog.git" target="_blank">点击查看</a></p> <p>·项目源码: <a href="https://git.coding.net/yirenyishi/beeblog.git" target="_blank">点击查看</a></p>
<p>·项目框架: </p> <p>·项目框架: </p>
<div style="margin-left: 15px"> <div style="margin-left: 15px">
<p><span>golang 1.11</span></p> <p><span>golang 1.11</span></p>
<p><span>beego:1.7.2 <a href="https://beego.me/" target="_blank">beego官网</a></span></p> <p><span>beego:1.7.2 <a href="https://beego.me/" target="_blank">beego官网</a></span></p>
<p>阿里UI: <a href="http://sui3.taobao.org/" target="_blank">sui3官网</a></p> <p>阿里UI: <a href="http://sui3.taobao.org/" target="_blank">sui3官网</a></p>
<p>富文本编辑器: <a href="http://www.wangeditor.com/" target="_blank">wangeditor官网</a></p> <p>富文本编辑器: <a href="http://www.wangeditor.com/" target="_blank">wangeditor官网</a></p>
<p>数据库: mysql(5.5.60-MariaDB)</p> <p>数据库: mysql(5.5.60-MariaDB)</p>
</div> </div>
<p>·项目搭建步骤: </p> <p>·项目搭建步骤: </p>
<div style="margin-left: 15px"> <div style="margin-left: 15px">
<p>1.安装配置golang 最新版本 (开发最好安装一下bee)</p> <p>1.安装配置golang 最新版本 (开发最好安装一下bee)</p>
<p>2.go get github.com/astaxie/beego</p> <p>2.go get github.com/astaxie/beego</p>
<p>3.go get github.com/go-sql-driver/mysql</p> <p>3.go get github.com/go-sql-driver/mysql</p>
<p>4.windows环境需要安装gcc <a href="http://tdm-gcc.tdragon.net/download">gcc下载地址</a></p> <p>4.windows环境需要安装gcc <a href="http://tdm-gcc.tdragon.net/download">gcc下载地址</a></p>
</div> </div>
</div> </div>
<div style="flex: 1"> <div style="flex: 1">
<img src="/static/img/alipay.png" alt="" width="320"> <img src="/static/img/alipay.png" alt="" width="320">
<img src="/static/img/weixin.png" alt="" width="320"> <img src="/static/img/weixin.png" alt="" width="320">
@ -37,4 +37,31 @@
{{template "footer"}} {{template "footer"}}
</div> </div>
</body> </body>
<script>
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
})
</script>
</html> </html>

36
views/user.html

@ -1,5 +1,6 @@
{{template "header"}} {{template "header"}}
<meta name="keywords" content="{{.User.NickName}},{{.User.NickName}}主页,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,www.aiprose.com,aiprose.com,aiprose"> <meta name="keywords"
content="{{.User.NickName}},{{.User.NickName}}主页,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,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>
@ -27,8 +28,10 @@
<hr class="fhr" color=#ffeeeeee SIZE=0.1 style="margin: 0"> <hr class="fhr" color=#ffeeeeee SIZE=0.1 style="margin: 0">
<div style="color: #515a6e;height: 30px;line-height: 30px;"> <div style="color: #515a6e;height: 30px;line-height: 30px;">
<span>排序: </span> <span>排序: </span>
<span style="margin-left: 15px"><a href="/u/{{.User.Id}}?num=1&flag=0" style="color: #515a6e;text-decoration: none">发布时间</a></span> <span style="margin-left: 15px"><a href="/u/{{.User.Id}}?num=1&flag=0"
<span style="margin-left: 8px"><a href="/u/{{.User.Id}}?num=1&flag=1" style="color: #515a6e;text-decoration: none">访问量</a></span> style="color: #515a6e;text-decoration: none">发布时间</a></span>
<span style="margin-left: 8px"><a href="/u/{{.User.Id}}?num=1&flag=1"
style="color: #515a6e;text-decoration: none">访问量</a></span>
</div> </div>
{{range .Page.List}} {{range .Page.List}}
<div class="blog-list"> <div class="blog-list">
@ -60,4 +63,31 @@
</div> </div>
</div> </div>
</body> </body>
<script>
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
})
</script>
</html> </html>
Loading…
Cancel
Save