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. 29
      views/login.html
  5. 27
      views/map.html
  6. 2
      views/note.html
  7. 2
      views/regist.html
  8. 29
      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>

29
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>
@ -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>

29
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>
@ -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